3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $swag = []; print_r($swag); $swoog[]; print_r($swoog); $class = '1.2.3.4.5.6'; $base = explode(".", $class)["0"]; echo $base;
Output for 5.4.0 - 5.4.22
Fatal error: Cannot use [] for reading in /in/XDDeI on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/XDDeI on line 2
Process exited with code 255.