3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agent = "Mozilla/5.0 (iPad; CPU OS 10_3_2 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) CriOS/59.0.3071.102 Mobile/14F89 Safari/602.1"; echo 'v3.6.5 '; preg_match('|Chrome[/ ]([0-9.]+)|', $this->agent, $version) || preg_match('|CrMo[/ ]([0-9.]+)|', $this->agent, $version) || preg_match('|CriOS[/ ]([0-9.]+)|', $this->agent, $version); var_dump($version); list ($majorVersion, $minorVersion) = explode('.', $version[1]); echo 'v3.7.3 '; preg_match('/Chrome[\/ ]([0-9.]+)|CrMo[\/ ]([0-9.]+)|CriOS[\/ ]([0-9.]+)/i', $agent, $version); var_dump($version); list ($majorVersion, $minorVersion) = explode('.', $version[1]);
Output for git.master, git.master_jit, rfc.property-hooks
v3.6.5 Fatal error: Uncaught Error: Using $this when not in object context in /in/QtL5v:6 Stack trace: #0 {main} thrown in /in/QtL5v on line 6
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:
50.91 ms | 401 KiB | 8 Q