3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,3); $a{'simple'} = 'test'; $a{'simeon'} = 'test2'; $a->{3} = 'test22'; print_r($a);
based on VDand
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Attempt to assign property of non-object in /in/EGUOn on line 6 Array ( [0] => 1 [1] => 2 [2] => 3 [simple] => test [simeon] => test2 )
Output for hhvm-3.12.0
Warning: Cannot access property on non-object in /in/EGUOn on line 6 Array ( [0] => 1 [1] => 2 [2] => 3 [simple] => test [simeon] => test2 )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.3 - 4.4.9
Fatal error: Property name must be a string in /in/EGUOn on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.2
Array ( [0] => 1 [1] => 2 [2] => 3 [simple] => test [simeon] => test2 )