$input |
= |
[ 'var1' => '$city', 'data1' => 'San Francisco', 'var2' => '$state', 'data2' => 'CA', 'var3' => '$event', 'data3' => 'SIGGRAPH', 'var4' => '$location_vars', 'data4' => [ 0 => 'city', 1 => 'state', ], 0 => 'event', 1 => 'nothing_here', 2 => '$location_vars', ] |
$expected_output |
= |
[ 'result' => [ 'array' => [ 'event' => 'SIGGRAPH', 'city' => 'San Francisco', 'state' => 'CA', ], ], 'php_version' => '5.6.8 WINNT i586', ] |
$test_output |
= |
[ 'result' => [ 'array' => [ 'event' => 'SIGGRAPH', 'city' => 'San Francisco', 'state' => 'CA', ], ], 'errors' => [ 0 => [ 'code' => 2, 'message' => 'Cannot call compact() dynamically', ], ], 'php_version' => '7.1.33 Linux x86_64', ] |