3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { throw new Exception("test"); } } class B extends A { public function __construct() { var_dump($this); try { parent::__construct(); } catch (Exception $e) { var_dump($e); var_dump($this); } } } $b = new 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.60.0060.00918.56
8.3.50.0140.00821.97
8.3.40.0110.00418.71
8.3.30.0090.00619.04
8.3.20.0100.00020.04
8.3.10.0040.00422.07
8.3.00.0040.00422.34
8.2.180.0110.01116.50
8.2.170.0110.00722.96
8.2.160.0170.00320.57
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00619.13
8.2.110.0030.00621.19
8.2.100.0040.00717.84
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0080.00017.80
8.2.50.0000.00818.10
8.2.40.0030.00618.21
8.2.30.0040.00417.81
8.2.20.0070.00017.80
8.2.10.0040.00417.75
8.2.00.0040.00417.65
8.1.280.0120.00625.92
8.1.270.0080.00022.09
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.72
8.1.230.0110.00017.60
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00717.22
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0050.00318.64
8.1.160.0000.00722.06
8.1.150.0000.00818.51
8.1.140.0000.00717.40
8.1.130.0040.00417.84
8.1.120.0000.00817.35
8.1.110.0050.00317.52
8.1.100.0040.00417.46
8.1.90.0000.00717.45
8.1.80.0080.00017.46
8.1.70.0040.00417.40
8.1.60.0000.00817.57
8.1.50.0000.00817.57
8.1.40.0040.00417.50
8.1.30.0040.00417.65
8.1.20.0000.00917.66
8.1.10.0040.00417.45
8.1.00.0060.00317.39
8.0.300.0060.00318.77
8.0.290.0090.00016.63
8.0.280.0000.00818.29
8.0.270.0000.00817.13
8.0.260.0000.00716.82
8.0.250.0000.00716.84
8.0.240.0050.00316.89
8.0.230.0020.00516.84
8.0.220.0030.00516.91
8.0.210.0000.00716.88
8.0.200.0000.00816.97
8.0.190.0080.00016.97
8.0.180.0070.00016.91
8.0.170.0030.00616.80
8.0.160.0040.00416.86
8.0.150.0040.00416.93
8.0.140.0040.00416.81
8.0.130.0000.00613.39
8.0.120.0060.00316.94
8.0.110.0030.00516.87
8.0.100.0070.00016.99
8.0.90.0000.00716.78
8.0.80.0060.00616.95
8.0.70.0040.00416.95
8.0.60.0040.00416.75
8.0.50.0040.00416.89
8.0.30.0120.00817.03
8.0.20.0090.01117.40
8.0.10.0040.00416.96
8.0.00.0150.00816.87
7.4.330.0000.00515.08
7.4.320.0060.00016.51
7.4.300.0030.00316.49
7.4.290.0000.00616.44
7.4.280.0030.00316.39
7.4.270.0050.00216.61
7.4.260.0000.00716.56
7.4.250.0070.00016.52
7.4.240.0070.00016.57
7.4.230.0030.00316.35
7.4.220.0110.00716.68
7.4.210.0080.00816.54
7.4.200.0030.00316.67
7.4.190.0000.00816.66
7.4.160.0120.00616.38
7.4.150.0130.00617.40
7.4.140.0130.00917.86
7.4.130.0100.00916.53
7.4.120.0080.01116.50
7.4.110.0080.01116.53
7.4.100.0200.00616.48
7.4.90.0190.00316.48
7.4.80.0100.01019.39
7.4.70.0130.00516.61
7.4.60.0140.00316.44
7.4.50.0090.00016.55
7.4.40.0090.00222.77
7.4.30.0090.01516.51
7.4.00.0080.00815.11
7.3.330.0000.00513.42
7.3.320.0060.00013.35
7.3.310.0030.00316.25
7.3.300.0000.00616.36
7.3.290.0080.00616.28
7.3.280.0060.01016.33
7.3.270.0180.00417.40
7.3.260.0080.00816.31
7.3.250.0110.00816.49
7.3.240.0180.00016.41
7.3.230.0140.00616.39
7.3.210.0070.01016.32
7.3.200.0090.01519.39
7.3.190.0070.01516.38
7.3.180.0060.01616.54
7.3.170.0090.00616.54
7.3.160.0200.00316.30
7.3.120.0110.00314.92
7.2.330.0080.01216.68
7.2.320.0100.01416.75
7.2.310.0070.01016.46
7.2.300.0130.00616.46
7.2.290.0060.01216.54
7.2.60.0030.01316.60
7.2.50.0040.01116.95
7.1.200.0070.00715.96
7.1.70.0040.00416.86
7.1.60.0060.00619.82
7.1.50.0100.01416.86
7.1.00.0070.07322.45
7.0.200.0070.00316.64
7.0.140.0030.07321.92
7.0.60.0100.06020.03
7.0.50.0100.08017.88
7.0.40.0070.09020.14
7.0.30.0300.07020.20
7.0.20.0300.04320.03
7.0.10.0000.06020.09
7.0.00.0100.08020.22
5.6.280.0030.07321.02
5.6.210.0070.08320.61
5.6.200.0100.08318.16
5.6.190.0130.08020.55
5.6.180.0270.04720.52
5.6.170.0330.04720.55
5.6.160.0030.09020.50
5.6.150.0030.06018.14
5.6.140.0070.04718.15
5.6.130.0030.09018.26
5.6.120.0070.05721.00
5.6.110.0070.06021.09
5.6.100.0130.06021.11
5.6.90.0200.06321.02
5.6.80.0130.06020.37
5.5.350.0200.08720.50
5.5.340.0000.05718.09
5.5.330.0070.05720.21
5.5.320.0270.04320.25
5.5.310.0230.05720.19
5.5.300.0130.05017.99
5.5.290.0000.04317.97
5.5.280.0070.04720.82
5.5.270.0070.07020.66
5.5.260.0070.08320.88
5.5.250.0130.04720.59
5.5.240.0070.07720.16
5.4.450.0170.05319.16
5.4.440.0830.05019.33
5.4.430.0070.06019.62
5.4.420.0170.04719.45
5.4.410.0170.06318.94
5.4.400.0100.06018.51
5.4.390.0130.04718.47
5.4.380.0230.06318.62
5.4.370.0230.04718.72
5.4.360.0170.05318.59
5.4.350.0200.05318.79
5.4.340.0170.05718.77
5.4.320.0080.04012.50
5.4.310.0070.04712.49
5.4.300.0080.04112.50
5.4.290.0060.03712.49
5.4.280.0070.03412.39
5.4.270.0130.05019.06
5.4.260.0100.06018.79
5.4.250.0000.06018.83
5.4.240.0130.07018.96
5.4.230.0070.05718.96
5.4.220.0130.04718.72
5.4.210.0170.06718.79
5.4.200.0230.06318.83
5.4.190.0170.05018.79
5.4.180.0130.06719.08
5.4.170.0230.04318.96
5.4.160.0170.06318.78
5.4.150.0100.08018.68
5.4.140.0100.06716.64
5.4.130.0070.06716.47
5.4.120.0170.06316.64
5.4.110.0100.05316.71
5.4.100.0130.05716.46
5.4.90.0230.05316.46
5.4.80.0130.06716.37
5.4.70.0130.05016.39
5.4.60.0130.06316.52
5.4.50.0100.05016.59
5.4.40.0130.06016.51
5.4.30.0130.05316.38
5.4.20.0100.06716.53
5.4.10.0100.08016.52
5.4.00.0070.05016.02
5.3.290.0070.03812.80
5.3.280.0130.05014.82
5.3.270.0070.05314.60
5.3.260.0130.06014.44
5.3.250.0030.06714.44
5.3.240.0170.07014.68
5.3.230.0130.04714.73
5.3.220.0070.07314.57
5.3.210.0170.05014.55
5.3.200.0200.05014.63
5.3.190.0130.05714.65
5.3.180.0100.06314.54
5.3.170.0200.06014.55
5.3.160.0170.07014.72
5.3.150.0070.07714.68
5.3.140.0070.07714.65
5.3.130.0100.07314.77
5.3.120.0070.05314.63
5.3.110.0270.06314.52
5.3.100.0200.05014.11
5.3.90.0170.07014.02
5.3.80.0130.06714.02
5.3.70.0030.05714.18
5.3.60.0030.07714.00
5.3.50.0170.04714.04
5.3.40.0070.06314.13
5.3.30.0100.06714.07
5.3.20.0130.05013.77
5.3.10.0170.06313.62
5.3.00.0100.05013.71
5.2.170.0130.04011.22
5.2.160.0100.04011.13
5.2.150.0170.03311.05
5.2.140.0070.06011.36
5.2.130.0170.05011.08
5.2.120.0130.05010.93
5.2.110.0130.05011.09
5.2.100.0000.05311.06
5.2.90.0070.06011.11
5.2.80.0070.05011.32
5.2.70.0130.05011.09
5.2.60.0070.05011.13
5.2.50.0170.04710.99
5.2.40.0030.05711.07
5.2.30.0070.05011.16
5.2.20.0100.04310.96
5.2.10.0100.05010.95
5.2.00.0030.06010.69
5.1.60.0100.03310.20
5.1.50.0170.0339.98
5.1.40.0100.0379.90
5.1.30.0070.04310.41
5.1.20.0000.05710.33
5.1.10.0170.04010.13
5.1.00.0000.04310.17
5.0.50.0070.0308.61
5.0.40.0070.0308.37
5.0.30.0030.0478.46
5.0.20.0000.0408.13
5.0.10.0130.0238.27
5.0.00.0030.0438.17
4.4.90.0000.0306.82
4.4.80.0030.0306.82
4.4.70.0070.0176.82
4.4.60.0000.0306.82
4.4.50.0100.0206.82
4.4.40.0170.0376.82
4.4.30.0000.0236.82
4.4.20.0100.0236.82
4.4.10.0000.0336.82
4.4.00.0000.0476.82
4.3.110.0030.0236.82
4.3.100.0000.0276.82
4.3.90.0030.0276.82
4.3.80.0030.0336.82
4.3.70.0000.0236.82
4.3.60.0070.0206.82
4.3.50.0030.0206.82
4.3.40.0130.0276.82
4.3.30.0000.0236.82
4.3.20.0030.0236.82
4.3.10.0000.0236.82
4.3.00.0030.0236.75

preferences:
52.54 ms | 401 KiB | 5 Q