3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ################################################### // Ping Class supplied by Antido @ phpclasses.org # // You are free to modify as you wish :) # // # // Ping? Pong! # ################################################### require("class.ping.php"); ping :: site("www.phpclasses.org", "Ping response of {site}: {time}"); // Where {site} will be replaced with the pinged site // And {time} will be replaced with the time in ms ?>
Output for 5.1.0 - 7.1.0
Warning: require(class.ping.php): failed to open stream: No such file or directory in /in/u3KqX on line 9 Fatal error: require(): Failed opening required 'class.ping.php' (include_path='.:') in /in/u3KqX on line 9
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(class.ping.php): failed to open stream: No such file or directory in /in/u3KqX on line 9 Fatal error: main(): Failed opening required 'class.ping.php' (include_path='.:') in /in/u3KqX on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(class.ping.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/u3KqX on line 9 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'class.ping.php' (include_path='.:') in /in/u3KqX on line 9