3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct($a, $b, $c) { throw new Exception("test"); } } class B extends A { public function __construct($a, $b, $c) { var_dump($this); try { parent::__construct($a, $b, $c); } catch (Exception $e) { var_dump($e); var_dump($this); } } } $b = new B(1, 2, 3); ?>

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.0120.00418.20
8.3.50.0080.00721.98
8.3.40.0040.01418.79
8.3.30.0140.00019.17
8.3.20.0030.00620.20
8.3.10.0090.00021.88
8.3.00.0040.00422.44
8.2.180.0120.00616.50
8.2.170.0120.00322.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00517.50
8.2.110.0060.00320.88
8.2.100.0000.01217.84
8.2.90.0090.00017.75
8.2.80.0000.00817.97
8.2.70.0040.00418.04
8.2.60.0080.00018.16
8.2.50.0100.00018.10
8.2.40.0000.00919.36
8.2.30.0030.00618.02
8.2.20.0000.00817.71
8.2.10.0000.00817.63
8.2.00.0000.00817.75
8.1.280.0120.00325.92
8.1.270.0080.00422.19
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00320.95
8.1.230.0040.00819.10
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00817.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00722.00
8.1.150.0040.00418.64
8.1.140.0000.00817.36
8.1.130.0070.00017.89
8.1.120.0040.00417.41
8.1.110.0000.00817.33
8.1.100.0000.00717.51
8.1.90.0000.00817.29
8.1.80.0050.00317.28
8.1.70.0000.00817.41
8.1.60.0060.00317.58
8.1.50.0040.00417.46
8.1.40.0030.00517.49
8.1.30.0040.00417.53
8.1.20.0030.00517.52
8.1.10.0040.00417.47
8.1.00.0030.00617.47
8.0.300.0000.00719.73
8.0.290.0000.00716.63
8.0.280.0000.00818.37
8.0.270.0000.00717.24
8.0.260.0000.00716.82
8.0.250.0000.00716.94
8.0.240.0040.00416.93
8.0.230.0030.00316.92
8.0.220.0000.00716.94
8.0.210.0030.00316.86
8.0.200.0000.00716.95
8.0.190.0070.00016.94
8.0.180.0040.00416.82
8.0.170.0050.00316.93
8.0.160.0050.00316.89
8.0.150.0070.00016.89
8.0.140.0080.00016.93
8.0.130.0060.00013.47
8.0.120.0000.00916.84
8.0.110.0040.00416.89
8.0.100.0040.00416.90
8.0.90.0030.00416.93
8.0.80.0120.00317.02
8.0.70.0000.00716.93
8.0.60.0040.00416.95
8.0.50.0070.00016.81
8.0.30.0100.01617.16
8.0.20.0080.01517.40
8.0.10.0050.00217.12
8.0.00.0080.01616.74
7.4.330.0030.00315.09
7.4.320.0030.00316.48
7.4.300.0030.00316.61
7.4.290.0070.00016.63
7.4.280.0030.00316.62
7.4.270.0030.00316.61
7.4.260.0000.00816.50
7.4.250.0070.00016.42
7.4.240.0050.00316.54
7.4.230.0000.00816.41
7.4.220.0080.00816.50
7.4.210.0080.00816.57
7.4.200.0000.00716.55
7.4.190.0040.00416.56
7.4.160.0120.00616.47
7.4.150.0240.00617.40
7.4.140.0130.00917.86
7.4.130.0120.00516.51
7.4.120.0100.00816.61
7.4.110.0040.01416.55
7.4.100.0090.00916.56
7.4.90.0070.01316.36
7.4.80.0110.01119.39
7.4.70.0060.01416.53
7.4.60.0110.00716.39
7.4.50.0020.00216.18
7.4.40.0040.01122.77
7.4.30.0090.01316.48
7.4.00.0060.00914.99
7.3.330.0000.00513.23
7.3.320.0020.00213.38
7.3.310.0030.00316.27
7.3.300.0000.00616.34
7.3.290.0060.01016.37
7.3.280.0070.01016.36
7.3.270.0100.01317.40
7.3.260.0130.00316.45
7.3.250.0130.00616.43
7.3.240.0180.00416.45
7.3.230.0130.01016.61
7.3.210.0070.01316.48
7.3.200.0110.01119.39
7.3.190.0140.00316.46
7.3.180.0060.01016.60
7.3.170.0090.00916.45
7.3.160.0130.00316.54
7.3.120.0090.00614.89
7.3.10.0030.01316.74
7.3.00.0070.00716.75
7.2.330.0090.00916.65
7.2.320.0140.01116.72
7.2.310.0060.01616.74
7.2.300.0170.00316.63
7.2.290.0070.01016.44
7.2.130.0080.00617.00
7.2.120.0030.00717.00
7.2.110.0000.01116.94
7.2.100.0060.00616.71
7.2.90.0160.00016.92
7.2.80.0050.01116.52
7.2.70.0090.00916.70
7.2.60.0120.00316.95
7.2.50.0150.00316.71
7.2.40.0160.00716.63
7.2.30.0080.01316.69
7.2.20.0080.01316.93
7.2.10.0040.00916.67
7.2.00.0050.00917.92
7.1.250.0050.00515.77
7.1.200.0030.00515.65
7.1.100.0000.01117.75
7.1.70.0000.00717.23
7.1.60.0000.02119.82
7.1.50.0070.01416.96
7.1.00.0030.07322.57
7.0.200.0040.00816.63
7.0.140.0030.07322.04
7.0.60.0130.07320.08
7.0.50.0030.05317.98
7.0.40.0030.08720.18
7.0.30.0430.07020.20
7.0.20.0230.04720.05
7.0.10.0400.07320.10
7.0.00.0130.07720.14
5.6.280.0030.07320.91
5.6.210.0130.07020.71
5.6.200.0100.08718.20
5.6.190.0130.03720.41
5.6.180.3530.04020.46
5.6.170.0270.04320.54
5.6.160.0070.08720.50
5.6.150.0070.04018.15
5.6.140.0100.07718.14
5.6.130.0100.06718.28
5.6.120.0230.06720.98
5.6.110.0030.09321.05
5.6.100.0100.08020.98
5.6.90.0130.06021.01
5.6.80.0170.05020.38
5.6.70.0200.03020.38
5.5.350.0030.07020.41
5.5.340.0100.08317.96
5.5.330.0070.04020.13
5.5.320.0270.07720.29
5.5.310.0300.07020.34
5.5.300.0070.07018.04
5.5.290.0100.07318.08
5.5.280.0030.08720.86
5.5.270.0100.07020.65
5.5.260.0030.08320.77
5.5.250.0230.07320.78
5.5.240.0030.04020.27
5.4.450.0800.07019.27
5.4.440.0630.06719.53
5.4.430.0230.04019.37
5.4.420.0170.05019.32
5.4.410.0070.05719.43
5.4.400.0730.00018.85
5.4.390.0800.00018.54
5.4.380.0300.05318.47
5.4.370.0130.05318.61
5.4.360.0200.04718.57
5.4.350.0300.03718.48
5.4.340.0100.05718.54
5.4.320.0070.04012.51
5.4.310.0110.04912.50
5.4.300.0050.03712.50
5.4.290.0090.04712.50
5.4.280.0080.03312.40
5.4.270.0070.06318.90
5.4.260.0230.06018.80
5.4.250.0130.07318.96
5.4.240.0100.07718.89
5.4.230.0130.05018.99
5.4.220.0000.06718.80
5.4.210.0200.06318.94
5.4.200.0070.05018.83
5.4.190.0200.06018.75
5.4.180.0100.07319.00
5.4.170.0170.05718.97
5.4.160.0170.04718.82
5.4.150.0170.06719.03
5.4.140.0000.05716.54
5.4.130.0030.05016.39
5.4.120.0100.05716.55
5.4.110.0100.06016.67
5.4.100.0000.07016.39
5.4.90.0100.06716.67
5.4.80.0100.04716.53
5.4.70.0170.05716.70
5.4.60.0130.06016.38
5.4.50.0100.07016.50
5.4.40.0230.03716.35
5.4.30.0030.05316.33
5.4.20.0100.06316.44
5.4.10.0130.05016.30
5.4.00.0130.05015.88
5.3.290.0070.04012.80
5.3.280.0100.06314.69
5.3.270.0030.05714.45
5.3.260.0100.07714.63
5.3.250.0070.07314.75
5.3.240.0200.05014.61
5.3.230.0070.05314.61
5.3.220.0030.05714.66
5.3.210.0130.06714.67
5.3.200.0100.05714.57
5.3.190.0200.04314.66
5.3.180.0100.07314.56
5.3.170.0070.06314.65
5.3.160.0070.05314.56
5.3.150.0030.05714.57
5.3.140.0200.04314.63
5.3.130.0130.05014.54
5.3.120.0130.05314.64
5.3.110.0100.05014.39
5.3.100.0100.07014.02
5.3.90.0100.06313.93
5.3.80.0070.07014.20
5.3.70.0130.06314.20
5.3.60.0130.05313.97
5.3.50.0200.05013.94
5.3.40.0070.05014.04
5.3.30.0170.06313.92
5.3.20.0170.06013.70
5.3.10.0030.06713.83
5.3.00.0030.05313.63
5.2.170.0070.04711.23
5.2.160.0100.03711.31
5.2.150.0170.04711.15
5.2.140.0030.04711.14
5.2.130.0030.04011.27
5.2.120.0070.05711.19
5.2.110.0070.04011.19
5.2.100.0070.05711.33
5.2.90.0000.06311.19
5.2.80.0070.05011.26
5.2.70.0070.04311.08
5.2.60.0030.04711.14
5.2.50.0100.05311.21
5.2.40.0130.05011.09
5.2.30.0170.05310.95
5.2.20.0000.05011.04
5.2.10.0070.05310.77
5.2.00.0130.04710.83
5.1.60.0100.04010.24
5.1.50.0070.0339.98
5.1.40.0100.0339.98
5.1.30.0070.03310.30
5.1.20.0100.05010.44
5.1.10.0130.03010.03
5.1.00.0030.04010.23
5.0.50.0030.0308.50
5.0.40.0100.0308.45
5.0.30.0100.0438.22
5.0.20.0070.0378.25
5.0.10.0030.0278.22
5.0.00.0030.0478.23
4.4.90.0100.0236.00
4.4.80.0000.0336.00
4.4.70.0070.0206.00
4.4.60.0130.0206.00
4.4.50.0030.0276.00
4.4.40.0030.0406.00
4.4.30.0000.0336.00
4.4.20.0070.0276.00
4.4.10.0130.0206.00
4.4.00.0030.0376.00
4.3.110.0030.0306.00
4.3.100.0100.0176.00
4.3.90.0030.0306.00
4.3.80.0100.0276.00
4.3.70.0100.0136.00
4.3.60.0000.0236.00
4.3.50.0070.0236.00
4.3.40.0000.0336.00
4.3.30.0030.0236.00
4.3.20.0030.0276.00
4.3.10.0030.0206.00
4.3.00.0100.0206.49

preferences:
44.74 ms | 401 KiB | 5 Q