3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexp = '^V[ABC][1-5][0-9]?$'; $tests = array( 'VA1','VA54','VB26','VC26', 'V25','VA66','VD26','VAA24','22', ); foreach($tests as $t) { var_dump("$t -> ".preg_match($regexp, $t)); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(7) "VA1 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(8) "VA54 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(8) "VB26 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(8) "VC26 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(7) "V25 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(8) "VA66 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(8) "VD26 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(9) "VAA24 -> " Warning: preg_match(): No ending delimiter '^' found in /in/kr2cV on line 8 string(6) "22 -> "

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:
45.19 ms | 403 KiB | 8 Q