3v4l.org

run code in 300+ PHP versions simultaneously
<?php t_ereg("d"); t_ereg("c"); t_ereg("ct"); t_ereg("coat"); t_ereg("do"); t_ereg("dog"); t_ereg("dogcat"); t_ereg("docat"); t_ereg("doc"); t_ereg("cat"); t_ereg("c1234abct"); function t_ereg ( $line ) { $pattern='dog|c*t'; echo "$pattern=>\"$line\":"; echo (ereg ($pattern, $line))?"1":"0"; echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
dog|c*t=>"d": Fatal error: Uncaught Error: Call to undefined function ereg() in /in/lt0aX:18 Stack trace: #0 /in/lt0aX(2): t_ereg('d') #1 {main} thrown in /in/lt0aX on line 18
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.47 ms | 401 KiB | 8 Q