3v4l.org

run code in 300+ PHP versions simultaneously
<?php $long = sprintf('%u', ip2long("128.0.0.1")); echo long2ip($long) . ", $long "\n";
Output for 5.4.0 - 5.4.17, 5.5.0 - 5.5.1
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting ',' or ';' in /in/V8DHI on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting ',' or ';' in /in/V8DHI on line 3
Process exited with code 255.

preferences:
180.04 ms | 1386 KiB | 55 Q