3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class_alias('DOMDocument', 'Regex'); $dom = new Regex();
Output for 7.0.0 - 7.2.0
Warning: First argument of class_alias() must be a name of user defined class in /in/J94MK on line 3 Fatal error: Uncaught Error: Class 'Regex' not found in /in/J94MK:5 Stack trace: #0 {main} thrown in /in/J94MK on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Warning: First argument of class_alias() must be a name of user defined class in /in/J94MK on line 3 Fatal error: Class 'Regex' not found in /in/J94MK on line 5
Process exited with code 255.