3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = AH587910 preg_match( '#^AH\d{6}$#',$matches ); echo $matches[5]; // 1234

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.5.90.0070.03719.48
5.5.80.0100.08019.37
5.5.70.0030.08019.22
5.5.60.0100.08019.23
5.5.50.0070.04019.50
5.5.40.0000.08719.27
5.5.30.0070.06019.21
5.5.20.0100.03719.43
5.5.10.0000.05319.30
5.5.00.0070.05719.41
5.4.250.0100.06318.87
5.4.240.0070.04718.85
5.4.230.0070.06319.24
5.4.220.0200.07019.07
5.4.210.0030.07719.14
5.4.200.0070.06019.20
5.4.190.0030.04719.14
5.4.180.0070.03319.14
5.4.170.0130.06318.97
5.4.160.0070.07319.00
5.4.150.0070.07019.09
5.4.140.0030.07716.39
5.4.130.0030.06016.37
5.4.120.0070.07016.37
5.4.110.0030.07316.34
5.4.100.0100.06716.40
5.4.90.0070.05016.67
5.4.80.0100.07016.38
5.4.70.0100.04016.26
5.4.60.0130.04716.51
5.4.50.0070.04016.25
5.4.40.0000.06716.36
5.4.30.0030.08016.50
5.4.20.0070.07316.36
5.4.10.0100.06316.46
5.4.00.0100.05315.88
5.3.280.0030.06314.54
5.3.270.0070.07014.57
5.3.260.0170.02714.54
5.3.250.0030.04714.50
5.3.240.0030.07314.53
5.3.230.0070.04314.52
5.3.220.0170.06314.58
5.3.210.0030.04014.45
5.3.200.0100.07014.45
5.3.190.0100.03714.53
5.3.180.0000.04014.50
5.3.170.0070.05314.49
5.3.160.0030.07014.51
5.3.150.0130.03014.45
5.3.140.0070.07314.50
5.3.130.0130.05314.48
5.3.120.0030.04314.48
5.3.110.0070.04314.48
5.3.100.0030.08013.92
5.3.90.0030.05313.90
5.3.80.0100.04013.95
5.3.70.0130.07313.83
5.3.60.0130.03713.95
5.3.50.0100.07013.79
5.3.40.0070.07313.86
5.3.30.0070.06013.92
5.3.20.0070.07013.78
5.3.10.0170.03313.60
5.3.00.0170.06313.55

preferences:
141.67 ms | 1394 KiB | 7 Q