3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(‘een’, ‘twee’, ‘drie’); $b = array(‘appel’, ‘taarten’, ‘koekjes’); var_dump(array_combine($a, $b));
Output for 7.2.0 - 7.2.11
Warning: Use of undefined constant ‘een’ - assumed '‘een’' (this will throw an Error in a future version of PHP) in /in/WXEGE on line 2 Warning: Use of undefined constant ‘twee’ - assumed '‘twee’' (this will throw an Error in a future version of PHP) in /in/WXEGE on line 2 Warning: Use of undefined constant ‘drie’ - assumed '‘drie’' (this will throw an Error in a future version of PHP) in /in/WXEGE on line 2 Warning: Use of undefined constant ‘appel’ - assumed '‘appel’' (this will throw an Error in a future version of PHP) in /in/WXEGE on line 3 Warning: Use of undefined constant ‘taarten’ - assumed '‘taarten’' (this will throw an Error in a future version of PHP) in /in/WXEGE on line 3 Warning: Use of undefined constant ‘koekjes’ - assumed '‘koekjes’' (this will throw an Error in a future version of PHP) in /in/WXEGE on line 3 array(3) { ["‘een’"]=> string(11) "‘appel’" ["‘twee’"]=> string(13) "‘taarten’" ["‘drie’"]=> string(13) "‘koekjes’" }
Output for 5.0.0 - 5.6.38, hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.1.23
Notice: Use of undefined constant ‘een’ - assumed '‘een’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘twee’ - assumed '‘twee’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘drie’ - assumed '‘drie’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘appel’ - assumed '‘appel’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘taarten’ - assumed '‘taarten’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘koekjes’ - assumed '‘koekjes’' in /in/WXEGE on line 3 array(3) { ["‘een’"]=> string(11) "‘appel’" ["‘twee’"]=> string(13) "‘taarten’" ["‘drie’"]=> string(13) "‘koekjes’" }
Output for hhvm-3.22.0
Notice: Use of undefined constant ‘een’ - assumed '‘een’' in /in/WXEGE on line -1 Notice: Use of undefined constant ‘twee’ - assumed '‘twee’' in /in/WXEGE on line -1 Notice: Use of undefined constant ‘drie’ - assumed '‘drie’' in /in/WXEGE on line -1 Notice: Use of undefined constant ‘appel’ - assumed '‘appel’' in /in/WXEGE on line -1 Notice: Use of undefined constant ‘taarten’ - assumed '‘taarten’' in /in/WXEGE on line -1 Notice: Use of undefined constant ‘koekjes’ - assumed '‘koekjes’' in /in/WXEGE on line -1 array(3) { ["‘een’"]=> string(11) "‘appel’" ["‘twee’"]=> string(13) "‘taarten’" ["‘drie’"]=> string(13) "‘koekjes’" }
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant ‘een’ - assumed '‘een’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘twee’ - assumed '‘twee’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘drie’ - assumed '‘drie’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘appel’ - assumed '‘appel’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘taarten’ - assumed '‘taarten’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘koekjes’ - assumed '‘koekjes’' in /in/WXEGE on line 3 Fatal error: Call to undefined function: array_combine() in /in/WXEGE on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant ‘een’ - assumed '‘een’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘twee’ - assumed '‘twee’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘drie’ - assumed '‘drie’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘appel’ - assumed '‘appel’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘taarten’ - assumed '‘taarten’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘koekjes’ - assumed '‘koekjes’' in /in/WXEGE on line 3 Fatal error: Call to undefined function: array_combine() in /in/WXEGE on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant ‘een’ - assumed '‘een’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘twee’ - assumed '‘twee’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘drie’ - assumed '‘drie’' in /in/WXEGE on line 2 Notice: Use of undefined constant ‘appel’ - assumed '‘appel’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘taarten’ - assumed '‘taarten’' in /in/WXEGE on line 3 Notice: Use of undefined constant ‘koekjes’ - assumed '‘koekjes’' in /in/WXEGE on line 3 Fatal error: Call to undefined function: array_combine() in /in/WXEGE on line 4