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[\/ ]([0-9.]+)|CrMo[\/ ]([0-9.]+)|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.0040.00419.86
8.3.140.0120.00617.38
8.3.130.0000.00818.45
8.3.120.0030.00619.03
8.3.110.0100.00020.94
8.3.100.0080.00424.06
8.3.90.0070.01326.77
8.3.80.0030.00716.88
8.3.70.0060.01117.00
8.3.60.0070.01516.63
8.3.50.0150.00716.76
8.3.40.0110.00419.27
8.3.30.0120.00319.05
8.3.20.0040.00420.20
8.3.10.0080.00021.59
8.3.00.0090.00022.08
8.2.250.0030.00619.00
8.2.240.0050.00519.08
8.2.230.0160.00022.58
8.2.220.0080.01137.54
8.2.210.0170.00326.77
8.2.200.0050.00517.25
8.2.190.0110.00618.54
8.2.180.0070.00717.00
8.2.170.0040.01122.96
8.2.160.0120.00319.20
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.29
8.2.120.0040.00426.35
8.2.110.0060.00322.28
8.2.100.0120.00018.09
8.2.90.0070.00319.25
8.2.80.0080.00017.97
8.2.70.0060.00617.75
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0060.00320.48
8.2.30.0050.00219.36
8.2.20.0040.00418.24
8.2.10.0000.00718.23
8.2.00.0040.00418.07
8.1.300.0080.00019.75
8.1.290.0090.00018.88
8.1.280.0070.01125.92
8.1.270.0040.00422.05
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00922.18
8.1.230.0040.00723.90
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0100.00017.38
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.73
8.1.160.0040.00419.10
8.1.150.0040.00418.98
8.1.140.0000.00919.66
8.1.130.0000.00718.92
8.1.120.0050.00217.54
8.1.110.0040.00417.51
8.1.100.0000.00817.57
8.1.90.0050.00317.50
8.1.80.0000.00717.54
8.1.70.0030.00317.52
8.1.60.0080.00017.70
8.1.50.0040.00417.54
8.1.40.0040.00417.52
8.1.30.0000.00817.68
8.1.20.0040.00417.68
8.1.10.0040.00417.79
8.1.00.0080.00017.73
8.0.300.0080.00018.77
8.0.290.0030.00516.74
8.0.280.0000.00818.46
8.0.270.0030.00317.27
8.0.260.0030.00316.99
8.0.250.0070.00017.14
8.0.240.0030.00317.04
8.0.230.0000.00717.16
8.0.220.0030.00317.03
8.0.210.0030.00317.08
8.0.200.0070.00017.10
8.0.190.0030.00517.01
8.0.180.0000.00717.00
8.0.170.0000.00716.94
8.0.160.0040.00417.06
8.0.150.0070.00017.07
8.0.140.0000.00717.06
8.0.130.0000.00613.58
8.0.120.0080.00017.01
8.0.110.0040.00417.09
8.0.100.0040.00417.03
8.0.90.0000.00717.16
8.0.80.0080.01117.02
8.0.70.0040.00417.15
8.0.60.0040.00417.14
8.0.50.0070.00017.20
8.0.30.0110.00817.22
8.0.20.0120.00717.46
8.0.10.0000.00717.12
8.0.00.0110.00717.23
7.4.330.0050.00015.55
7.4.320.0000.00716.84
7.4.300.0060.00016.84
7.4.290.0000.00716.70
7.4.280.0040.00416.89
7.4.270.0000.00716.74
7.4.260.0070.00016.78
7.4.250.0040.00416.68
7.4.240.0030.00316.89
7.4.230.0040.00416.82
7.4.220.0130.00716.71
7.4.210.0090.00616.90
7.4.200.0040.00416.94
7.4.160.0110.01116.65
7.4.150.0110.00717.40
7.4.140.0130.00617.86
7.4.130.0090.00916.64
7.4.120.0090.01016.67
7.4.110.0090.00916.80
7.4.100.0030.01516.68
7.4.90.0150.00316.73
7.4.80.0100.00819.39
7.4.70.0130.00316.54
7.4.60.0080.00816.89
7.4.50.0070.00716.54
7.4.40.0080.00816.62
7.4.30.0160.00316.84
7.4.00.0070.01015.37
7.3.330.0030.00313.34
7.3.320.0040.00413.32
7.3.310.0070.00016.29
7.3.300.0040.00416.53
7.3.290.0070.00016.53
7.3.280.0100.00816.50
7.3.270.0040.01317.40
7.3.260.0150.00716.54
7.3.250.0110.00716.49
7.3.240.0050.01416.60
7.3.230.0130.00816.80
7.3.210.0070.01016.64
7.3.200.0030.01316.54
7.3.190.0100.01016.53
7.3.180.0070.01016.43
7.3.170.0060.01016.27
7.3.160.0140.00316.44
7.2.330.0090.00616.55
7.2.320.0100.01316.68
7.2.310.0090.00916.83
7.2.300.0000.01716.98
7.2.290.0130.01016.71
7.2.80.0060.01116.50
7.2.60.0030.01317.30
7.2.00.0100.00319.29
7.1.200.0100.00716.06
7.1.100.0080.00318.21
7.1.70.0030.00917.07
7.1.60.0070.02035.19
7.1.50.0210.00934.92
7.1.40.0170.01734.63
7.1.30.0180.00934.78
7.1.20.0180.01135.00
7.1.10.0060.00916.85
7.1.00.0000.01416.89
7.0.200.0090.00616.62
7.0.190.0090.00616.95
7.0.180.0090.00616.31
7.0.170.0110.00316.55
7.0.160.0040.01116.26
7.0.150.0060.00916.30
7.0.140.0070.00716.41
7.0.130.0040.00816.59
7.0.120.0070.00716.71
7.0.110.0040.00816.39
7.0.100.0030.00916.40
7.0.90.0060.00916.44
7.0.80.0070.00716.39
7.0.70.0060.00616.18
7.0.60.0000.01316.18
7.0.50.0030.01016.54
7.0.40.0030.01016.53
7.0.30.0060.00616.54
7.0.20.0030.01216.45
7.0.10.0030.01316.77
7.0.00.0070.00716.64

preferences:
45.71 ms | 403 KiB | 5 Q