3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { spl_autoload_register(function(){ echo 'throw'; throw new Exception('waa?'); }); spl_autoload_register(function(){ throw new Exception('waa!'); }); } catch (Exception $e) { var_dump($e); } new A;

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.3.40.0040.01218.79
8.3.30.0040.01118.75
8.3.20.0040.00418.69
8.3.10.0090.00020.71
8.3.00.0110.00019.27
8.2.170.0110.00422.96
8.2.160.0070.00721.06
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.83
8.2.110.0070.00319.33
8.2.100.0060.00617.88
8.2.90.0040.00418.81
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00918.09
8.2.30.0000.00718.13
8.2.20.0040.00417.70
8.2.10.0000.00817.68
8.2.00.0000.00817.80
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00022.24
8.1.230.0040.00718.88
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0050.00317.43
8.1.180.0050.00318.10
8.1.170.0030.00518.77
8.1.160.0050.00218.75
8.1.150.0040.00418.49
8.1.140.0030.00617.41
8.1.130.0000.00717.79
8.1.120.0050.00317.44
8.1.110.0000.00817.29
8.1.100.0080.00017.39
8.1.90.0050.00317.43
8.1.80.0040.00417.41
8.1.70.0040.00417.28
8.1.60.0060.00317.42
8.1.50.0060.00317.47
8.1.40.0070.00017.50
8.1.30.0050.00317.48
8.1.20.0000.00817.51
8.1.10.0040.00417.57
8.1.00.0040.00417.31
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0030.00318.40
8.0.270.0030.00317.24
8.0.260.0000.00716.88
8.0.250.0000.00717.00
8.0.240.0040.00416.93
8.0.230.0070.00016.97
8.0.220.0000.00916.86
8.0.210.0040.00416.87
8.0.200.0070.00017.02
8.0.190.0000.00716.98
8.0.180.0000.00817.02
8.0.170.0040.00416.98
8.0.160.0040.00416.88
8.0.150.0080.00016.86
8.0.140.0030.00916.92
8.0.130.0000.00513.38
8.0.120.0040.00416.81
8.0.110.0000.00716.90
8.0.100.0040.00416.98
8.0.90.0030.00317.00
8.0.80.0120.00316.93
8.0.70.0000.00716.77
8.0.60.0040.00416.84
8.0.50.0030.00516.90
8.0.30.0100.00817.10
8.0.20.0140.00617.21
8.0.10.0050.00216.93
8.0.00.0070.01116.74
7.4.330.0050.00012.95
7.4.320.0030.00616.45
7.4.300.0060.00016.42
7.4.290.0040.00716.48
7.4.280.0030.00616.57
7.4.270.0000.00916.50
7.4.260.0030.00313.16
7.4.250.0050.00316.32
7.4.240.0070.00016.57
7.4.230.0070.00016.61
7.4.220.0040.01416.43
7.4.210.0090.00816.51
7.4.200.0030.00316.44
7.4.190.0000.00716.60
7.4.160.0040.01316.30
7.4.150.0190.00616.46
7.4.140.0150.00216.67
7.4.130.0060.01116.60
7.4.120.0110.00716.47
7.4.110.0100.00716.31
7.4.100.0000.01716.41
7.4.90.0140.00316.42
7.4.80.0090.00916.62
7.4.70.0080.00816.46
7.4.60.0110.00716.37
7.4.50.0030.00316.48
7.4.40.0080.00616.43
7.4.30.0080.00816.35
7.4.00.0000.01415.23
7.3.330.0060.00013.14
7.3.320.0000.00513.32
7.3.310.0000.00716.15
7.3.300.0000.00716.23
7.3.290.0120.00316.31
7.3.280.0110.00816.29
7.3.270.0100.00716.56
7.3.260.0080.00816.35
7.3.250.0120.00616.36
7.3.240.0120.00616.60
7.3.230.0070.01316.30
7.3.210.0080.00816.45
7.3.200.0060.01619.39
7.3.190.0160.00016.32
7.3.180.0030.01216.35
7.3.170.0060.01016.38
7.3.160.0100.01016.52
7.3.120.0030.01214.89
7.2.330.0000.01716.67
7.2.320.0100.00616.44
7.2.310.0080.01716.52
7.2.300.0150.00316.38
7.2.290.0070.01116.62
7.2.60.0040.01117.00
7.2.00.0080.00619.40
7.1.200.0060.00615.87
7.1.100.0090.00318.01
7.1.70.0020.00517.08
7.1.60.0110.01419.40
7.1.50.0030.01716.92
7.1.00.0000.04722.25
7.0.200.0040.00416.75
7.0.140.0100.06722.09
7.0.120.0130.08022.05
7.0.110.0400.05320.05
7.0.100.0230.04020.08
7.0.90.0270.04020.04
7.0.80.0200.04319.96
7.0.70.0200.05319.95
7.0.60.0270.04019.93
7.0.50.0230.04719.91
7.0.40.0030.05319.89
7.0.30.0100.07319.85
7.0.20.0000.04719.69
7.0.10.0070.07019.69
7.0.00.0030.05719.78
5.6.280.0130.06320.97
5.6.260.0100.05320.62
5.6.250.0070.07020.68
5.6.240.0070.07720.87
5.6.230.0000.04320.69
5.6.220.0030.04020.70
5.6.210.0130.03320.64
5.6.200.0030.04020.65
5.6.190.0070.08020.62
5.6.180.0100.06320.55
5.6.170.0000.05720.86
5.6.160.0030.09020.55
5.6.150.0100.04320.59
5.6.140.0100.04020.55
5.6.130.0130.03020.64
5.6.120.0030.04020.62
5.6.110.0000.04720.60
5.6.100.0100.06720.64
5.6.90.0100.05320.64
5.6.80.0030.05320.05
5.6.70.0070.06020.03
5.6.60.0030.08020.07
5.6.50.0130.06320.07
5.6.40.0000.04019.97
5.6.30.0100.04019.91
5.6.20.0100.03719.87
5.6.10.0100.05720.21
5.6.00.0070.04020.00
5.5.380.0030.03717.59
5.5.370.0030.06717.51
5.5.360.0030.04317.57
5.5.350.0030.03317.62
5.5.340.0030.04017.82
5.5.330.0070.06318.25
5.5.320.0030.08718.07
5.5.310.0030.03718.25
5.5.300.0030.03718.23
5.5.290.0100.05018.10
5.5.280.0030.05717.91
5.5.270.0100.05718.12
5.5.260.0130.07317.82
5.5.250.0000.04317.91
5.5.240.0000.03717.44
5.5.230.0070.06717.63
5.5.220.0100.06317.45
5.5.210.0070.07317.63
5.5.200.0030.05717.22
5.5.190.0030.06717.45
5.5.180.0030.06717.28
5.5.160.0070.03717.58
5.5.150.0100.07317.43
5.5.140.0100.04317.60
5.5.130.0100.06717.28
5.5.120.0100.05717.57
5.5.110.0030.05717.49
5.5.100.0070.07017.36
5.5.90.0070.04317.35
5.5.80.0070.06017.48
5.5.70.0000.04717.31
5.5.60.0130.05717.34
5.5.50.0030.03717.31
5.5.40.0100.07017.34
5.5.30.0000.05017.37
5.5.20.0070.04017.07
5.5.10.0030.06017.19
5.5.00.0070.04717.16
5.4.450.0070.09019.32
5.4.440.0030.08019.50
5.4.430.0030.06319.45
5.4.420.0000.04719.35
5.4.410.0030.04719.53
5.4.400.0070.04719.00
5.4.390.0070.04718.95
5.4.380.0000.03718.98
5.4.370.0000.04719.24
5.4.360.0030.03019.14
5.4.350.0030.06018.98
5.4.340.0130.04719.09
5.4.320.0070.06319.31
5.4.310.0030.06318.95
5.4.300.0100.04019.00
5.4.290.0070.07319.08
5.4.280.0000.05719.22
5.4.270.0030.06318.98
5.4.260.0130.06719.00
5.4.250.0100.04019.17
5.4.240.0070.07719.23
5.4.230.0030.04719.34
5.4.220.0100.03319.17
5.4.210.0000.04719.20
5.4.200.0000.05318.99
5.4.190.0030.07319.17
5.4.180.0100.07319.17
5.4.170.0030.06718.93
5.4.160.0030.04018.98
5.4.150.0130.04019.31
5.4.140.0070.07716.48
5.4.130.0100.05716.54
5.4.120.0000.07716.56
5.4.110.0100.06016.65
5.4.100.0070.06716.43
5.4.90.0130.06716.36
5.4.80.0000.07716.49
5.4.70.0070.07316.55
5.4.60.0100.06016.39
5.4.50.0000.04316.39
5.4.40.0030.09016.43
5.4.30.0000.07016.44
5.4.20.0070.07316.52
5.4.10.0030.06316.23
5.4.00.0000.05315.92
5.3.290.0030.07014.64
5.3.280.0130.06014.68
5.3.270.0070.04314.76
5.3.260.0000.04714.64
5.3.250.0070.06014.65
5.3.240.0170.07014.74
5.3.230.0070.04314.73
5.3.220.0030.04314.61
5.3.210.0100.07314.61
5.3.200.0030.07714.61
5.3.190.0100.06014.60
5.3.180.0100.06014.66
5.3.170.0030.06014.56
5.3.160.0100.05714.58
5.3.150.0100.05714.60
5.3.140.0070.07714.59
5.3.130.0000.04714.78
5.3.120.0100.06314.79
5.3.110.0070.03714.57
5.3.100.0100.06713.90
5.3.90.0100.03014.11
5.3.80.0030.05314.25
5.3.70.0030.06713.88
5.3.60.0130.06313.87
5.3.50.0000.06714.05
5.3.40.0130.03713.95
5.3.30.0030.07013.89
5.3.20.0100.03713.84
5.3.10.0030.05313.72
5.3.00.0030.06013.72
5.2.170.0030.06312.46
5.2.160.0030.05312.46
5.2.150.0070.06712.46
5.2.140.0130.05312.46
5.2.130.0030.05312.46
5.2.120.0000.03012.46
5.2.110.0030.03312.46
5.2.100.0100.02312.46
5.2.90.0000.03312.46
5.2.80.0100.05012.46
5.2.70.0070.05312.46
5.2.60.0030.05012.46
5.2.50.0070.04312.46
5.2.40.0130.05312.46
5.2.30.0030.03312.46
5.2.20.0000.04012.46
5.2.10.0070.02712.46
5.2.00.0030.04012.46
5.1.60.0000.03012.46
5.1.50.0100.04712.46
5.1.40.0130.04012.46
5.1.30.0030.05312.46
5.1.20.0070.06012.46
5.1.10.0000.04712.46
5.1.00.0000.05012.46
5.0.50.0030.04312.46
5.0.40.0000.02312.46
5.0.30.0000.06312.46
5.0.20.0030.04312.46
5.0.10.0000.03712.46
5.0.00.0000.05712.46
4.4.90.0000.02012.46
4.4.80.0030.03312.46
4.4.70.0000.03012.46
4.4.60.0000.02012.46
4.4.50.0000.03012.46
4.4.40.0000.05712.46
4.4.30.0100.02312.46
4.4.20.0030.03712.46
4.4.10.0000.04012.46
4.4.00.0000.05012.46
4.3.110.0030.03012.46
4.3.100.0000.01712.46
4.3.90.0030.02012.46
4.3.80.0000.04312.46
4.3.70.0030.03312.46
4.3.60.0000.01712.46
4.3.50.0000.02012.46
4.3.40.0000.03312.46
4.3.30.0000.01312.46
4.3.20.0000.02712.46
4.3.10.0000.03312.46
4.3.00.0000.02712.46

preferences:
47.7 ms | 400 KiB | 5 Q