3v4l.org

run code in 300+ PHP versions simultaneously
<?php //preg_match( '/^\[#(\d+)\]/', '[#1234] Subject', $matches); //echo $matches[0]; // 1234 if (preg_match("/php/", "php")) { print "1 Got match!\n"; } if (preg_match("/php/", "PHP")) { print "2 Got match!\n"; } if (preg_match("/php/i", "internet")) { print "3 Got match!\n"; }

preferences:
34.48 ms | 402 KiB | 5 Q