3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function() { echo "WTF?"; }); class User { public function getName() { return "Daniel Ribeiro"; } } $user = new User(); $user->getN4me();

preferences:
39.11 ms | 402 KiB | 5 Q