3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a, $b) { throw new Exception("test"); } foo(1, "this is a key");

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.1.70.0030.00317.34
8.1.60.0050.00317.54
8.1.50.0000.00917.41
8.1.40.0000.00717.31
8.1.30.0000.00817.62
8.1.20.0000.00717.42
8.1.10.0000.00817.48
8.1.00.0000.00717.37
8.0.200.0030.00316.98
8.0.190.0000.01016.96
8.0.180.0000.00716.81
8.0.170.0000.00916.88
8.0.160.0030.00416.77
8.0.150.0000.00716.95
8.0.140.0000.00716.77
8.0.130.0000.00613.45
8.0.120.0070.00016.82
8.0.110.0070.00016.92
8.0.100.0070.00016.85
8.0.90.0000.00716.77
8.0.80.0030.01216.93
8.0.70.0040.00416.93
8.0.60.0050.00316.84
8.0.50.0040.00416.79
8.0.30.0100.00717.07
8.0.20.0120.01017.40
8.0.10.0030.00516.83
8.0.00.0110.00616.74
7.4.300.0000.00716.34
7.4.290.0070.00016.58
7.4.280.0000.00716.45
7.4.270.0030.00316.44
7.4.260.0040.00416.51
7.4.250.0030.00316.25
7.4.240.0050.00216.39
7.4.230.0000.00716.56
7.4.220.0100.01016.39
7.4.210.0080.00816.50
7.4.200.0000.00716.46
7.4.160.0070.01016.27
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01016.56
7.4.120.0090.00816.43
7.4.110.0120.00916.59
7.4.100.0130.01016.37
7.4.90.0090.00916.28
7.4.80.0120.00919.39
7.4.70.0000.02016.61
7.4.60.0120.00416.54
7.4.50.0060.00316.64
7.4.40.0100.00716.41
7.4.30.0060.01016.49
7.4.00.0030.01414.80
7.3.330.0000.00513.15
7.3.320.0000.00513.30
7.3.310.0000.00716.36
7.3.300.0040.00416.16
7.3.290.0090.00616.34
7.3.280.0090.01016.25
7.3.270.0100.00617.40
7.3.260.0070.01116.32
7.3.250.0090.01316.39
7.3.240.0030.01416.59
7.3.230.0120.00916.39
7.3.210.0060.01216.34
7.3.200.0090.01419.39
7.3.190.0100.00716.55
7.3.180.0030.01316.44
7.3.170.0000.01516.57
7.3.160.0160.00616.45
7.3.10.0030.01116.22
7.3.00.0080.00816.35
7.2.330.0030.01716.54
7.2.320.0060.01016.73
7.2.310.0130.00616.53
7.2.300.0090.00916.58
7.2.290.0040.01316.55
7.2.130.0090.00816.59
7.2.120.0090.00516.77
7.2.110.0100.00916.55
7.2.100.0120.00716.55
7.2.90.0110.00416.65
7.2.80.0100.00516.54
7.2.70.0090.00716.69
7.2.60.0080.00916.54
7.2.50.0090.00916.59
7.2.40.0130.00316.62
7.2.30.0070.00816.84
7.2.20.0100.00416.63
7.2.10.0140.00516.56
7.2.00.0150.00316.63
7.1.250.0040.01115.52
7.1.200.0130.00615.71
7.1.70.0040.00417.04
7.1.60.0070.01019.34
7.1.50.0100.01316.57
7.1.00.0070.07322.28
7.0.200.0000.00916.82
7.0.140.0030.06721.95
7.0.60.0070.08319.86
7.0.50.0070.04017.87
7.0.40.0070.09020.24
7.0.30.0330.04720.23
7.0.20.0300.08720.21
7.0.10.0130.07320.33
7.0.00.0100.08320.22
5.6.280.0000.07721.01
5.6.210.0200.07320.50
5.6.200.0170.07318.18
5.6.190.0100.04020.42
5.6.180.0330.04720.63
5.6.170.0330.04720.46
5.6.160.0100.07320.50
5.6.150.0000.04718.21
5.6.140.0100.07318.18
5.6.130.0100.04018.16
5.6.120.0200.06721.05
5.6.110.0000.08020.98
5.6.100.0030.08021.11
5.6.90.0070.06021.10
5.6.80.0070.07320.40
5.6.70.4670.04020.35
5.5.350.0130.08720.38
5.5.340.0100.09317.96
5.5.330.0200.04320.43
5.5.320.3570.04720.29
5.5.310.0230.06320.24
5.5.300.0130.07318.03
5.5.290.0030.04717.98
5.5.280.0100.08020.90
5.5.270.0130.07320.83
5.5.260.0070.08720.84
5.5.250.0030.06720.68
5.5.240.0000.04020.25
5.4.450.0270.05019.28
5.4.440.0270.05319.49
5.4.430.0200.03319.56
5.4.420.0230.04719.52
5.4.410.0100.05719.02
5.4.400.0200.05318.58
5.4.390.0100.05718.72
5.4.380.0270.04318.53
5.4.370.0070.07718.78
5.4.360.0170.05318.47
5.4.350.0000.04313.86
5.4.340.0070.03713.86
5.4.320.0130.03014.28
5.4.310.0070.04014.27
5.4.300.0100.03714.34
5.4.290.0070.04014.21
5.4.280.0130.03014.39
5.4.270.0070.04014.18
5.4.260.0100.03714.16
5.4.250.0130.03314.23
5.4.240.0070.04014.31
5.4.230.0070.04314.27
5.4.220.0070.03714.08
5.4.210.0170.02714.22
5.4.200.0030.04714.15
5.4.190.0100.03714.21
5.4.180.0000.04314.38
5.4.170.0100.03314.32
5.4.160.0130.03314.38
5.4.150.0070.04314.14
5.4.140.0070.04013.78
5.4.130.0030.04013.82
5.4.120.0130.04313.77
5.4.110.0070.03714.01
5.4.100.0100.03313.80
5.4.90.0100.03713.77
5.4.80.0000.04313.76
5.4.70.0100.03313.83
5.4.60.0100.03313.77
5.4.50.0100.03713.80
5.4.40.0170.04013.92
5.4.30.0130.05013.89
5.4.20.0170.04713.74
5.4.10.0070.03713.77
5.4.00.0070.03713.32
5.3.290.0100.04014.63
5.3.280.0130.03314.66
5.3.270.0070.04714.63
5.3.260.0130.03314.59
5.3.250.0070.04014.60
5.3.240.0030.04314.67
5.3.230.0100.03714.52
5.3.220.0100.03714.73
5.3.210.0100.04014.60
5.3.200.0170.03314.59
5.3.190.0070.04014.61
5.3.180.0170.03014.75
5.3.170.0070.04014.75
5.3.160.0100.03314.66
5.3.150.0130.04014.61
5.3.140.0070.04714.73
5.3.130.0200.02714.70
5.3.120.0070.04314.61
5.3.110.0100.03714.69
5.3.100.0070.04014.06
5.3.90.0070.04014.16
5.3.80.0070.04314.16
5.3.70.0030.04013.90
5.3.60.0030.04014.04
5.3.50.0070.03713.92
5.3.40.0030.04014.02
5.3.30.0130.03014.07
5.3.20.0070.03713.72
5.3.10.0070.04013.59
5.3.00.0030.04313.67
5.2.170.0070.03311.14
5.2.160.0030.03311.19
5.2.150.0130.02311.28
5.2.140.0100.02711.14
5.2.130.0070.03011.11
5.2.120.0070.03311.08
5.2.110.0030.03011.16
5.2.100.0030.03011.08
5.2.90.0100.02311.14
5.2.80.0070.03311.14
5.2.70.0130.03011.28
5.2.60.0070.03011.09
5.2.50.0100.02710.93
5.2.40.0070.02711.11
5.2.30.0070.03011.04
5.2.20.0000.03310.88
5.2.10.0000.03310.83
5.2.00.0030.03010.78
5.1.60.0070.0209.95
5.1.50.0000.03310.06
5.1.40.0000.0309.95
5.1.30.0070.03010.26
5.1.20.0000.03010.53
5.1.10.0030.02710.12
5.1.00.0000.03010.06
5.0.50.0030.0208.60
5.0.40.0000.0238.35
5.0.30.0030.0308.30
5.0.20.0100.0138.13
5.0.10.0030.0208.18
5.0.00.0070.0278.25
4.4.90.0000.0205.95
4.4.80.0000.0175.82
4.4.70.0000.0175.94
4.4.60.0070.0135.85
4.4.50.0000.0176.00
4.4.40.0030.0235.99
4.4.30.0030.0135.82
4.4.20.0000.0205.92
4.4.10.0000.0175.91
4.4.00.0030.0235.89
4.3.110.0030.0175.84
4.3.100.0030.0135.78
4.3.90.0000.0175.72
4.3.80.0030.0235.76
4.3.70.0070.0105.74
4.3.60.0030.0135.75
4.3.50.0000.0205.73
4.3.40.0030.0275.78
4.3.30.0070.0104.52
4.3.20.0000.0174.48
4.3.10.0000.0174.44
4.3.00.0030.01316.49

preferences:
48.28 ms | 406 KiB | 5 Q