3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$arr = [1, 2, 3];echo $arr[1]."\n";echo [1, 2, 3][1]."\n";print_r($arr);
Output for 5.4.0 - 5.4.32
<?php$arr = [1, 2, 3];echo $arr[1]."\n";echo [1, 2, 3][1]."\n";print_r($arr);