3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agent = "Mozilla/5.0 (iPad; CPU OS 10_3_2 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) CriOS/59.0.3071.102 Mobile/14F89 Safari/602.1"; echo 'v3.6.5 '; preg_match('|CriOS[/ ]([0-9.]+)|', $agent, $version); var_dump($version); list ($majorVersion, $minorVersion) = explode('.', $version[1]); echo 'v3.7.3 '; preg_match('/Chrome|CrMo|CriOS[\/ ]([0-9.]+)/i', $agent, $version); var_dump($version); list ($majorVersion, $minorVersion) = explode('.', $version[1]);

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)
8.4.10.0090.01219.85
8.3.140.0030.00520.67
8.3.130.0050.00318.63
8.3.120.0000.00920.63
8.3.110.0110.00020.94
8.3.100.0030.00518.33
8.3.90.0150.00026.77
8.3.80.0080.00317.00
8.3.70.0180.00416.58
8.3.60.0160.00016.50
8.3.50.0090.01016.71
8.3.40.0000.01519.11
8.3.30.0040.01118.95
8.3.20.0000.00820.36
8.3.10.0000.00723.61
8.3.00.0080.00022.04
8.2.260.0000.00816.73
8.2.250.0090.00916.66
8.2.240.0030.00617.29
8.2.230.0000.01022.58
8.2.220.0030.00624.06
8.2.210.0050.00326.77
8.2.200.0040.00418.41
8.2.190.0150.00316.88
8.2.180.0040.01816.88
8.2.170.0070.01122.96
8.2.160.0140.00019.29
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00419.79
8.2.110.0090.00019.37
8.2.100.0070.00418.09
8.2.90.0050.00318.13
8.2.80.0050.00318.22
8.2.70.0060.00317.75
8.2.60.0040.00417.88
8.2.50.0040.00417.88
8.2.40.0060.00317.88
8.2.30.0040.00421.03
8.2.20.0040.00418.03
8.2.10.0040.00418.05
8.2.00.0040.00418.23
8.1.300.0140.00318.08
8.1.290.0080.00430.84
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0110.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00322.81
8.1.230.0110.00021.10
8.1.220.0080.00017.74
8.1.210.0090.00018.78
8.1.200.0000.00917.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.01118.67
8.1.160.0040.00419.16
8.1.150.0000.00818.88
8.1.140.0040.00419.66
8.1.130.0030.00318.84
8.1.120.0000.00717.57
8.1.110.0000.00717.45
8.1.100.0040.00417.54
8.1.90.0040.00417.61
8.1.80.0030.00517.56
8.1.70.0060.00317.59
8.1.60.0000.00817.59
8.1.50.0030.00717.68
8.1.40.0050.00317.50
8.1.30.0040.00417.84
8.1.20.0080.00017.67
8.1.10.0000.00817.71
8.1.00.0030.00517.55
8.0.300.0080.00020.14
8.0.290.0040.00417.00
8.0.280.0000.00718.49
8.0.270.0040.00417.31
8.0.260.0000.00816.99
8.0.250.0030.00316.98
8.0.240.0070.00017.02
8.0.230.0000.00816.98
8.0.220.0040.00417.03
8.0.210.0000.00716.86
8.0.200.0060.00017.04
8.0.190.0080.00017.06
8.0.180.0040.00416.93
8.0.170.0000.00717.00
8.0.160.0040.00416.87
8.0.150.0040.00416.89
8.0.140.0070.00017.02
8.0.130.0030.00313.42
8.0.120.0000.00817.04
8.0.110.0030.00316.89
8.0.100.0050.00316.96
8.0.90.0040.00417.02
8.0.80.0100.01317.05
8.0.70.0050.00216.97
8.0.60.0050.00316.94
8.0.50.0070.00017.08
8.0.30.0030.01217.26
8.0.20.0110.00917.40
8.0.10.0080.00017.06
8.0.00.0090.00917.02
7.4.330.0050.00015.55
7.4.320.0030.00316.81
7.4.300.0060.00016.74
7.4.290.0030.00516.59
7.4.280.0050.00316.82
7.4.270.0000.00716.86
7.4.260.0080.00316.79
7.4.250.0000.00716.80
7.4.240.0000.00716.82
7.4.230.0030.00316.67
7.4.220.0120.00616.81
7.4.210.0070.01016.79
7.4.200.0050.00316.65
7.4.150.0070.01117.40
7.4.140.0070.01117.86
7.4.130.0090.00916.95
7.4.120.0070.01116.73
7.4.110.0040.02116.58
7.4.100.0040.01516.96
7.4.90.0090.00916.86
7.4.80.0060.01619.39
7.4.70.0030.01416.66
7.4.60.0160.00016.79
7.4.50.0030.01016.77
7.4.40.0120.00416.81
7.4.30.0120.00916.82
7.4.00.0070.01015.20
7.3.330.0060.00013.28
7.3.320.0000.00513.09
7.3.310.0000.00716.47
7.3.300.0000.00716.36
7.3.290.0070.00016.41
7.3.280.0120.00716.43
7.3.270.0080.00817.40
7.3.260.0100.00716.55
7.3.250.0060.01316.44
7.3.240.0100.00816.76
7.3.230.0090.00916.26
7.3.210.0130.00316.71
7.3.200.0080.00816.63
7.3.190.0090.00916.75
7.3.180.0170.00016.63
7.3.170.0100.00616.41
7.3.160.0080.00816.29
7.2.330.0110.00516.82
7.2.320.0120.00616.87
7.2.310.0130.00316.51
7.2.300.0100.00616.83
7.2.290.0060.01116.75
7.2.60.0070.01016.66
7.2.00.0060.00619.55
7.1.200.0040.01016.09
7.1.100.0030.00718.16
7.1.70.0110.00717.31
7.1.60.0310.00935.27
7.1.50.0290.01434.80
7.1.40.0200.01334.78
7.1.30.0140.01634.88
7.1.20.0230.01034.76
7.1.10.0000.01516.69
7.1.00.0100.01316.82
7.0.200.0100.01016.78
7.0.190.0140.00716.88
7.0.180.0110.00516.27
7.0.170.0000.01516.41
7.0.160.0030.01216.27
7.0.150.0040.01116.41
7.0.140.0130.00616.63
7.0.130.0070.01316.73
7.0.120.0120.00916.89
7.0.110.0090.01116.36
7.0.100.0070.01116.63
7.0.90.0120.00616.43
7.0.80.0100.01016.63
7.0.70.0000.01916.48
7.0.60.0000.01516.21
7.0.50.0040.01516.54
7.0.40.0130.00616.47
7.0.30.0070.01116.53
7.0.20.0060.01316.68
7.0.10.0110.00716.51
7.0.00.0070.01116.60

preferences:
27.16 ms | 403 KiB | 5 Q