3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = array('test', '3', 'google.com'); $bar = array('title', 'rating', 'url'); $foobar = array_combine($bar, $foo); var_dump($foobar);
Output for 5.0.0 - 7.2.0
array(3) { ["title"]=> string(4) "test" ["rating"]=> string(1) "3" ["url"]=> string(10) "google.com" }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/6KHAF on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/6KHAF on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/6KHAF on line 6