3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; // Run the preg_match() function on regex against the email address if (preg_match($regex, $email)) { echo $email . \" is a valid email. We can accept it.\"; } else { echo $email . \" is an invalid email. Please try again.\"; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.240.0470.06719.03
5.4.230.0400.03319.08
5.4.220.0400.03719.11
5.4.210.0500.06019.23
5.4.200.0470.05719.09
5.4.190.0370.04319.15
5.4.180.0400.06019.04
5.4.170.0500.06019.21
5.4.160.0400.03719.04
5.4.150.0400.07019.04
5.4.140.0500.06316.36
5.4.130.0370.03716.40
5.4.120.0530.06716.40
5.4.110.0400.03716.52
5.4.100.0470.04316.55
5.4.90.0500.04316.55
5.4.80.0500.05316.30
5.4.70.0330.04016.51
5.4.60.0430.04716.49
5.4.50.0470.06016.49
5.4.40.0400.03316.52
5.4.30.0470.05316.49
5.4.20.0400.07016.41
5.4.10.0470.04016.29
5.4.00.0370.03715.85
5.3.280.0430.04014.53
5.3.270.0470.07014.50
5.3.260.0500.06014.54
5.3.250.0470.05014.54
5.3.240.0430.06714.70
5.3.230.0570.03714.52
5.3.220.0430.06714.45
5.3.210.0470.06314.52
5.3.200.0430.06014.52
5.3.190.0530.05714.35
5.3.180.0470.03014.44
5.3.170.0370.04314.50
5.3.160.0470.06714.36
5.3.150.0500.06314.53
5.3.140.0470.05314.64
5.3.130.0470.07014.52
5.3.120.0470.06714.48
5.3.110.0500.06314.53
5.3.100.0430.06713.96
5.3.90.0370.03713.92
5.3.80.0300.04313.83
5.3.70.0470.06313.95
5.3.60.0470.05713.93
5.3.50.0430.05013.93
5.3.40.0530.05713.91
5.3.30.0400.06713.70
5.3.20.0400.04713.63
5.3.10.0400.05713.60
5.3.00.0470.06013.65

preferences:
135.36 ms | 1394 KiB | 7 Q