3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $exp ='^\d+[,\d+]*'; $text = '0'; //echo preg_match_all($exp, $text); if (ereg($exp,$text)) echo "yes"; else echo "no";
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function ereg() in /in/ightO:6 Stack trace: #0 {main} thrown in /in/ightO on line 6
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
yes
Output for 5.3.0 - 5.6.28
Deprecated: Function ereg() is deprecated in /in/ightO on line 6 no
Output for 4.3.0 - 5.2.17
no