3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '54 some gay way'; $parts = explode(' ', $str); $size = sizeof($parts) if (size > 1) { $number = $parts[0]; $address = implode(' ', array_slice($parts, 1, $size - 1)); } var_dump($number, $address);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected 'if' (T_IF) in /in/D7l4n on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_IF in /in/D7l4n on line 8
Process exited with code 255.