3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(1 => "Hello"); var_dump($arr); $x = "arr"; echo $x(1);
Output for 7.0.0 - 7.1.0
array(1) { [1]=> string(5) "Hello" } Fatal error: Uncaught Error: Call to undefined function arr() in /in/Y5SfZ:12 Stack trace: #0 {main} thrown in /in/Y5SfZ on line 12
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
array(1) { [1]=> string(5) "Hello" } Fatal error: Call to undefined function arr() in /in/Y5SfZ on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
array(1) { [1]=> string(5) "Hello" } Fatal error: Call to undefined function: arr() in /in/Y5SfZ on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(1) { [1]=> string(5) "Hello" } Fatal error: Call to undefined function: arr() in /in/Y5SfZ on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(1) { [1]=> string(5) "Hello" } Fatal error: Call to undefined function: arr() in /in/Y5SfZ on line 12