3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_match('/(\.(?!php))$/i','test.PHP')."\n"; echo preg_match('/(\.(?!(php|exe))$/i','test.php')."\n"; echo preg_match('/(\.(?!(php|exe))$/i','test.EXE')."\n"; echo preg_match('/(\.(?!(php|exe))$/i','test.exe')."\n"; echo preg_match('/(\.(?!(php|exe))$/i','test.zip')."\n"; echo preg_match('/(\.(?!(php|exe))$/i','test.ZIP')."\n"; echo preg_match('/(\.(?!(php|exe))$/i','test.ok')."\n";echo preg_match('/(\.(?!(php|\.exe))$/i','test.OK');
Output for git.master, git.master_jit, rfc.property-hooks
0 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 17 in /in/O4168 on line 3 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 17 in /in/O4168 on line 4 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 17 in /in/O4168 on line 5 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 17 in /in/O4168 on line 6 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 17 in /in/O4168 on line 7 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 17 in /in/O4168 on line 8 Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 19 in /in/O4168 on line 8

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