3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['hey foo', 'afoo', 'abarf00', 'puff'] as $s) { var_dump($s, preg_match('/(?!.*(foo|bar)/s', $s)); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 14 in /in/cQRRq on line 4 string(7) "hey foo" bool(false) Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 14 in /in/cQRRq on line 4 string(4) "afoo" bool(false) Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 14 in /in/cQRRq on line 4 string(7) "abarf00" bool(false) Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 14 in /in/cQRRq on line 4 string(4) "puff" bool(false)

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:
167.37 ms | 407 KiB | 5 Q