3v4l.org

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