3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends Exception { public function a() { echo __METHOD__."\n"; } } class Bar extends Foo { public function b() { echo __METHOD__."\n"; } } try { throw new Bar(); } catch (Foo $f) { $f->b(); }

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.0140.00718.64
8.3.30.0070.00718.91
8.3.20.0050.00320.29
8.3.10.0040.00423.73
8.3.00.0080.00019.38
8.2.170.0030.01022.96
8.2.160.0080.00820.52
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00320.96
8.2.110.0030.00620.24
8.2.100.0080.00319.41
8.2.90.0000.00819.08
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0070.00018.00
8.2.20.0000.00717.64
8.2.10.0050.00318.04
8.2.00.0030.00617.78
8.1.270.0050.00323.83
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.65
8.1.230.0040.00819.15
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0030.00621.92
8.1.150.0040.00418.92
8.1.140.0000.00917.41
8.1.130.0000.00717.87
8.1.120.0000.00717.49
8.1.110.0040.00317.47
8.1.100.0040.00317.30
8.1.90.0050.00217.42
8.1.80.0030.00417.43
8.1.70.0030.00317.34
8.1.60.0030.00517.59
8.1.50.0030.00617.52
8.1.40.0040.00417.52
8.1.30.0030.00617.65
8.1.20.0040.00417.57
8.1.10.0040.00417.55
8.1.00.0000.00717.50
8.0.300.0000.00718.77
8.0.290.0000.00816.88
8.0.280.0030.00518.39
8.0.270.0080.00017.29
8.0.260.0030.00317.27
8.0.250.0070.00016.94
8.0.240.0040.00416.96
8.0.230.0040.00416.91
8.0.220.0030.00316.85
8.0.210.0030.00316.95
8.0.200.0040.00416.91
8.0.190.0040.00417.00
8.0.180.0070.00016.80
8.0.170.0040.00416.94
8.0.160.0000.00716.79
8.0.150.0000.00716.96
8.0.140.0040.00716.90
8.0.130.0030.00313.42
8.0.120.0040.00416.91
8.0.110.0030.00416.87
8.0.100.0040.00416.95
8.0.90.0080.00016.83
8.0.80.0100.01316.93
8.0.70.0070.00017.02
8.0.60.0000.00716.99
8.0.50.0000.00817.02
8.0.30.0110.00917.10
8.0.20.0080.01117.40
8.0.10.0070.00016.84
8.0.00.0080.00916.94
7.4.330.0000.00515.07
7.4.320.0030.00316.55
7.4.300.0060.00016.52
7.4.290.0030.00316.56
7.4.280.0080.00016.61
7.4.270.0080.00016.59
7.4.260.0000.00716.59
7.4.250.0040.00416.39
7.4.240.0030.00316.51
7.4.230.0030.00316.60
7.4.220.0120.00616.49
7.4.210.0040.01116.50
7.4.200.0070.00016.53
7.4.160.0040.01816.46
7.4.150.0130.00417.40
7.4.140.0060.01017.86
7.4.130.0140.00516.46
7.4.120.0100.00616.73
7.4.110.0060.01216.57
7.4.100.0060.01216.59
7.4.90.0070.01016.58
7.4.80.0190.00319.39
7.4.70.0080.00816.43
7.4.60.0130.00316.45
7.4.50.0000.00516.53
7.4.40.0060.01416.66
7.4.30.0130.00316.53
7.4.00.0060.01114.79
7.3.330.0000.00513.32
7.3.320.0030.00313.39
7.3.310.0000.00616.38
7.3.300.0030.00316.23
7.3.290.0110.00416.30
7.3.280.0090.01016.37
7.3.270.0100.00717.40
7.3.260.0100.00716.38
7.3.250.0110.00516.57
7.3.240.0040.01316.35
7.3.230.0070.00716.39
7.3.210.0090.00916.35
7.3.200.0200.00319.39
7.3.190.0060.01116.51
7.3.180.0030.01216.39
7.3.170.0090.00616.39
7.3.160.0110.00716.53
7.3.120.0120.00614.79
7.3.110.0070.01014.95
7.3.100.0030.01414.83
7.3.90.0060.00914.94
7.3.80.0060.00914.87
7.3.70.0030.00614.68
7.3.60.0030.00714.91
7.3.50.0000.00914.73
7.3.40.0030.01214.52
7.3.30.0060.00614.90
7.3.20.0000.01216.51
7.3.10.0040.01116.83
7.3.00.0080.00416.39
7.2.330.0150.00416.65
7.2.320.0100.00716.46
7.2.310.0110.00516.66
7.2.300.0070.01016.72
7.2.290.0060.00916.70
7.2.250.0070.01414.89
7.2.240.0060.01015.07
7.2.230.0060.00914.89
7.2.220.0040.01215.00
7.2.210.0090.00615.10
7.2.200.0040.00714.78
7.2.190.0090.00614.80
7.2.180.0080.00314.87
7.2.170.0060.00914.84
7.2.60.0040.00816.73
7.1.330.0000.01415.47
7.1.320.0060.00315.53
7.1.310.0060.00615.83
7.1.300.0080.00615.81
7.1.290.0130.00315.71
7.1.280.0070.00715.89
7.1.270.0060.00615.67
7.1.260.0060.00315.75
7.1.200.0060.01115.66
7.1.70.0000.00717.02
7.1.60.0040.02119.40
7.1.50.0110.01416.78
7.1.00.0030.07322.43
7.0.200.0070.00016.64
7.0.140.0000.07722.01
7.0.60.0030.06719.82
7.0.50.0070.04317.89
7.0.40.0030.09020.40
7.0.30.0100.08320.23
7.0.20.0230.04720.08
7.0.10.0070.08720.06
7.0.00.0070.09020.07
5.6.280.0030.07321.14
5.6.210.0030.04020.56
5.6.200.0100.06018.17
5.6.190.0030.04020.52
5.6.180.4100.04020.61
5.6.170.0200.06720.55
5.6.160.0070.05320.55
5.6.150.0070.05718.14
5.6.140.0030.07718.21
5.6.130.0030.08018.19
5.6.120.0130.07321.13
5.6.110.0000.07321.00
5.6.100.0000.04721.09
5.6.90.0170.07720.89
5.6.80.0070.05320.46
5.6.70.3330.03320.29
5.5.350.0270.07720.33
5.5.340.0070.08717.95
5.5.330.0130.07020.28
5.5.320.3130.04020.35
5.5.310.0170.03720.42
5.5.300.0130.06717.95
5.5.290.0070.03717.98
5.5.280.0170.08020.97
5.5.270.0100.08320.68
5.5.260.0100.04020.65
5.5.250.0070.08320.71
5.5.240.0330.06020.05
5.4.450.0570.03719.41
5.4.440.0470.04719.32
5.4.430.0200.04719.45
5.4.420.0070.05319.47
5.4.410.0400.03319.51
5.4.400.0570.03019.09
5.4.390.0600.03319.21
5.4.380.1000.04318.73
5.4.370.0800.05018.72
5.4.360.0730.05718.63
5.4.350.1100.06018.63
5.4.340.1670.07018.73
5.4.320.0050.03812.51
5.4.310.0050.03912.51
5.4.300.0040.04312.50
5.4.290.0070.04512.50
5.4.280.0140.04012.40
5.4.270.0100.04812.40
5.4.260.0110.04512.40
5.4.250.0080.03912.40
5.4.240.0080.03812.41
5.4.230.0070.04612.40
5.4.220.0080.04312.39
5.4.210.0080.04012.39
5.4.200.0140.03812.40
5.4.190.0090.03412.39
5.4.180.0080.03912.39
5.4.170.0070.03612.40
5.4.160.0050.03712.40
5.4.150.0040.03712.40
5.4.140.0060.03712.08
5.4.130.0080.03412.07
5.4.120.0080.03912.03
5.4.110.0080.03412.02
5.4.100.0090.04712.02
5.4.90.0060.04812.02
5.4.80.0070.03712.02
5.4.70.0070.03512.01
5.4.60.0070.04012.02
5.4.50.0060.03612.02
5.4.40.0050.04012.00
5.4.30.0090.03712.00
5.4.20.0060.03912.00
5.4.10.0030.03712.00
5.4.00.0040.04111.49
5.3.290.0080.04412.80
5.3.280.0070.04112.71
5.3.270.0050.04312.72
5.3.260.0050.04212.72
5.3.250.0090.03912.72
5.3.240.0060.04912.71
5.3.230.0100.04912.70
5.3.220.0060.03912.68
5.3.210.0110.04112.68
5.3.200.0080.04112.68
5.3.190.0090.04412.68
5.3.180.0070.03712.68
5.3.170.0080.03612.67
5.3.160.0110.04812.68
5.3.150.0070.04912.68
5.3.140.0030.04012.66
5.3.130.0050.04012.66
5.3.120.0050.04312.66
5.3.110.0090.04412.66
5.3.100.0030.04012.13
5.3.90.0060.03812.11
5.3.80.0060.03712.10
5.3.70.0080.03712.11
5.3.60.0050.03712.09
5.3.50.0070.03512.03
5.3.40.0070.03612.03
5.3.30.0040.03811.98
5.3.20.0060.04011.77
5.3.10.0040.03711.73
5.3.00.0080.03711.72
5.2.170.0070.0309.23
5.2.160.0060.0299.22
5.2.150.0060.0359.22
5.2.140.0060.0309.22
5.2.130.0030.0329.18
5.2.120.0050.0299.18
5.2.110.0060.0309.19
5.2.100.0030.0319.19
5.2.90.0080.0289.19
5.2.80.0020.0369.18
5.2.70.0050.0309.18
5.2.60.0030.0339.14
5.2.50.0050.0339.11
5.2.40.0040.0349.08
5.2.30.0100.0309.06
5.2.20.0030.0329.04
5.2.10.0040.0308.95
5.2.00.0050.0308.81
5.1.60.0080.0248.10
5.1.50.0070.0228.09
5.1.40.0040.0258.07
5.1.30.0050.0268.42
5.1.20.0080.0248.45
5.1.10.0040.0288.17
5.1.00.0040.0288.17
5.0.50.0030.0246.64
5.0.40.0060.0176.50
5.0.30.0040.0386.32
5.0.20.0040.0216.28
5.0.10.0030.0206.27
5.0.00.0030.0326.26
4.4.90.0040.0174.78
4.4.80.0030.0174.75
4.4.70.0050.0154.76
4.4.60.0030.0174.75
4.4.50.0030.0174.77
4.4.40.0030.0274.71
4.4.30.0020.0174.75
4.4.20.0040.0154.85
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0020.0174.67
4.3.100.0050.0134.67
4.3.90.0010.0164.63
4.3.80.0040.0284.58
4.3.70.0040.0134.63
4.3.60.0030.0154.62
4.3.50.0030.0154.63
4.3.40.0040.0264.54
4.3.30.0040.0163.30
4.3.20.0030.0153.28
4.3.10.0030.0153.23
4.3.00.0000.01715.91

preferences:
40.19 ms | 400 KiB | 5 Q