3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function (): string { try { throw new \Exception(); } finally { return 'bar'; } }; var_dump($f());

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.5.30.0120.00619.52
8.5.20.0100.00819.50
8.5.10.0110.00716.73
8.5.00.0140.00719.92
8.4.180.0110.01119.76
8.4.170.0140.00823.82
8.4.160.0110.01223.21
8.4.150.0090.00416.91
8.4.140.0140.00917.71
8.4.130.0050.00520.40
8.4.120.0110.00924.05
8.4.110.0110.00820.45
8.4.100.0150.00618.38
8.4.90.0090.00318.81
8.4.80.0050.00318.11
8.4.70.0090.01118.11
8.4.60.0140.00618.86
8.4.50.0050.00418.56
8.4.40.0100.01017.90
8.4.30.0080.00020.30
8.4.20.0030.01617.89
8.4.10.0100.01019.59
8.3.300.0120.01020.75
8.3.290.0120.00820.75
8.3.280.0110.00818.27
8.3.270.0140.00516.54
8.3.260.0060.00216.57
8.3.250.0110.00818.98
8.3.240.0140.00617.10
8.3.230.0100.00416.75
8.3.220.0100.00818.93
8.3.210.0100.00418.51
8.3.200.0080.00016.50
8.3.190.0120.00717.26
8.3.180.0120.00716.65
8.3.170.0120.00620.51
8.3.160.0060.01317.23
8.3.150.0070.01317.33
8.3.140.0040.00416.64
8.3.130.0070.00316.53
8.3.120.0090.00618.88
8.3.110.0060.00316.63
8.3.100.0030.00616.52
8.3.90.0040.00426.77
8.3.80.0000.00919.36
8.3.70.0150.00016.58
8.3.60.0080.00816.75
8.3.50.0110.00718.13
8.3.40.0040.01118.70
8.3.30.0080.00618.79
8.3.20.0000.00824.18
8.3.10.0050.00224.66
8.3.00.0030.00526.16
8.2.300.0100.01220.46
8.2.290.0120.00720.41
8.2.280.0100.00818.25
8.2.270.0090.00917.44
8.2.260.0180.00016.74
8.2.250.0080.00018.36
8.2.240.0080.01116.69
8.2.230.0040.00420.94
8.2.220.0030.01324.06
8.2.210.0080.00026.77
8.2.200.0040.00718.88
8.2.190.0120.00318.08
8.2.180.0150.00625.92
8.2.170.0110.00419.13
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.75
8.2.110.0060.00319.45
8.2.100.0080.00318.03
8.2.90.0040.00418.16
8.2.80.0000.00817.97
8.2.70.0090.00017.93
8.2.60.0030.00618.22
8.2.50.0080.00018.10
8.2.40.0000.00819.52
8.2.30.0040.00417.93
8.2.20.0070.00017.96
8.2.10.0040.00421.04
8.2.00.0080.00019.23
8.1.340.0120.00817.63
8.1.330.0110.01122.04
8.1.320.0060.00216.05
8.1.310.0070.00716.98
8.1.300.0000.01015.93
8.1.290.0030.00630.84
8.1.280.0130.00325.92
8.1.270.0070.00023.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00722.45
8.1.230.0100.00020.97
8.1.220.0050.00317.75
8.1.210.0040.00418.77
8.1.200.0080.00317.36
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.51
8.1.160.0000.00718.88
8.1.150.0030.00618.76
8.1.140.0000.00718.81
8.1.130.0030.00320.10
8.1.120.0000.00717.47
8.1.110.0040.00417.48
8.1.100.0000.00817.42
8.1.90.0040.00417.39
8.1.80.0050.00517.34
8.1.70.0040.00417.32
8.1.60.0030.00517.50
8.1.50.0060.00317.49
8.1.40.0000.00717.48
8.1.30.0030.00617.71
8.1.20.0050.00317.63
8.1.10.0040.00817.56
8.1.00.0090.00017.54
8.0.300.0000.00919.86
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0030.00317.88
8.0.260.0020.00518.45
8.0.250.0000.00716.99
8.0.240.0030.00317.01
8.0.230.0000.00717.01
8.0.220.0030.00316.80
8.0.210.0000.00716.88
8.0.200.0000.00716.99
8.0.190.0060.00316.92
8.0.180.0040.00416.95
8.0.170.0090.00016.96
8.0.160.0040.00417.01
8.0.150.0000.00816.88
8.0.140.0050.00316.96
8.0.130.0060.00013.30
8.0.120.0030.00616.94
8.0.110.0040.00416.86
8.0.100.0050.00216.84
8.0.90.0040.00416.77
8.0.80.0080.00716.86
8.0.70.0040.00416.86
8.0.60.0070.00016.95
8.0.50.0080.00016.75
8.0.30.0000.02016.93
8.0.20.0130.00817.05
8.0.10.0140.00717.03
8.0.00.0090.01317.10
7.4.330.0040.00415.55
7.4.320.0060.00316.51
7.4.300.0000.00616.49
7.4.290.0000.00716.38
7.4.280.0000.00916.61
7.4.270.0030.00316.61
7.4.260.0000.00513.27
7.4.250.0070.00016.51
7.4.240.0030.00316.49
7.4.230.0000.00716.60
7.4.220.0050.00216.67
7.4.210.0030.01216.59
7.4.200.0070.00016.32
7.4.160.0070.01416.62
7.4.150.0100.01016.55
7.4.140.0070.01016.46
7.4.130.0130.01016.39
7.4.120.0060.00916.42
7.4.110.0110.00916.46
7.4.100.0100.01016.59
7.4.90.0150.00316.43
7.4.80.0030.01016.39
7.4.70.0070.00716.41
7.4.60.0090.01216.34
7.4.50.0060.01616.29
7.4.40.0140.00516.34
7.4.30.0090.01316.48
7.4.20.0140.00716.41
7.4.10.0060.01616.56
7.4.00.0080.01316.56
7.3.330.0000.00716.14
7.3.320.0000.00613.41
7.3.310.0040.00416.20
7.3.300.0000.00716.21
7.3.290.0080.00916.28
7.3.270.0140.00616.30
7.3.260.0030.01216.36
7.3.250.0200.00016.29
7.3.240.0100.00916.29
7.3.230.0100.01016.30
7.3.220.0150.00316.17
7.3.210.0140.00716.30
7.3.200.0150.00616.33
7.3.190.0170.00316.29
7.3.180.0160.00416.22
7.3.170.0130.00616.23
7.3.160.0080.01216.28
7.3.150.0060.01516.32
7.3.140.0120.00616.29
7.3.130.0070.01016.25
7.3.120.0090.00916.26
7.3.110.0100.01016.21
7.3.100.0000.02116.13
7.3.90.0030.01716.50
7.3.80.0070.01316.20
7.3.70.0090.00916.38
7.3.60.0180.00316.34
7.3.50.0060.01216.42
7.3.40.0030.01216.42
7.3.30.0080.00816.41
7.3.20.0060.01116.40
7.3.10.0070.01116.35
7.3.00.0060.00916.28

preferences:
114.42 ms | 1359 KiB | 5 Q