3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Test script, include all of the things! $bol_use_live = isset($_SERVER['argv'][1]) && ($_SERVER['argv'][1]==='-live'); $arr_arr = ['apple', 'orange']; echo print_r($arr_arr, true);
based on VI95S
Output for 5.4.9 - 7.2.0
Array ( [0] => apple [1] => orange )
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/7nhG2 on line 7
Process exited with code 255.