3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( array( '1' => foo, '11' => 'bar' ) );
Output for 7.2.0 - 7.3.0rc3
Warning: Use of undefined constant foo - assumed 'foo' (this will throw an Error in a future version of PHP) in /in/7G8k4 on line 3 array(2) { [1]=> string(3) "foo" [11]=> string(3) "bar" }
Output for 5.5.0 - 7.1.20
Notice: Use of undefined constant foo - assumed 'foo' in /in/7G8k4 on line 3 array(2) { [1]=> string(3) "foo" [11]=> string(3) "bar" }