3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '//www.example.com/path?googleguy=googley' var_dump(parse_url($x)); $y = 'path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($y));
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/m8Be3 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/m8Be3 on line 5
Process exited with code 255.

preferences:
174.56 ms | 1395 KiB | 53 Q