3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { assert(PHP_MAJOR_VERSION >= 7, new AssertionError('PHP 7 is requiered!')); } catch (Exception $e) { } echo 'Hi!';
based on sput2
Output for 7.0.0 - 7.2.0
Hi!
Output for 5.3.18 - 5.6.28
Fatal error: Class 'AssertionError' not found in /in/f9PtQ on line 2
Process exited with code 255.