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($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.0000.01518.43
8.3.50.0150.00522.05
8.3.40.0130.00318.90
8.3.30.0060.01019.09
8.3.20.0090.00920.35
8.3.10.0080.00022.04
8.3.00.0050.00322.50
8.2.180.0030.01416.88
8.2.170.0180.00322.96
8.2.160.0030.01720.36
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0050.00319.26
8.2.110.0030.00622.30
8.2.100.0040.00819.51
8.2.90.0000.01119.08
8.2.80.0000.00817.97
8.2.70.0080.00017.60
8.2.60.0050.00517.93
8.2.50.0090.00018.07
8.2.40.0050.00518.03
8.2.30.0040.00417.91
8.2.20.0040.00417.70
8.2.10.0040.00417.65
8.2.00.0000.00717.79
8.1.280.0130.00725.92
8.1.270.0000.00822.06
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00623.84
8.1.230.0110.00019.15
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00817.47
8.1.190.0070.00017.41
8.1.180.0040.00718.10
8.1.170.0000.00818.71
8.1.160.0040.00421.97
8.1.150.0040.00418.64
8.1.140.0000.00717.38
8.1.130.0070.00017.93
8.1.120.0040.00417.48
8.1.110.0070.00017.39
8.1.100.0000.00717.37
8.1.90.0030.00517.43
8.1.80.0020.00517.40
8.1.70.0070.00017.35
8.1.60.0030.00617.47
8.1.50.0000.00817.51
8.1.40.0050.00217.38
8.1.30.0080.00017.53
8.1.20.0000.00817.61
8.1.10.0050.00217.59
8.1.00.0000.01117.49
8.0.300.0000.00718.77
8.0.290.0080.00016.93
8.0.280.0040.00418.39
8.0.270.0000.00717.20
8.0.260.0030.00316.82
8.0.250.0050.00216.87
8.0.240.0030.00416.93
8.0.230.0000.00716.97
8.0.220.0000.00716.82
8.0.210.0000.00716.89
8.0.200.0040.00416.99
8.0.190.0000.00816.97
8.0.180.0040.00416.82
8.0.170.0000.00816.95
8.0.160.0040.00416.82
8.0.150.0040.00416.83
8.0.140.0040.00416.90
8.0.130.0030.00313.41
8.0.120.0050.00216.81
8.0.110.0070.00016.86
8.0.100.0050.00316.97
8.0.90.0040.00417.02
8.0.80.0150.00016.95
8.0.70.0050.00216.84
8.0.60.0040.00416.89
8.0.50.0040.00416.89
8.0.30.0090.01217.22
8.0.20.0110.00917.40
8.0.10.0050.00317.08
8.0.00.0120.00716.89
7.4.330.0030.00315.09
7.4.320.0060.00016.52
7.4.300.0000.00816.58
7.4.290.0030.00316.57
7.4.280.0000.00616.51
7.4.270.0030.00316.52
7.4.260.0040.00416.56
7.4.250.0000.00716.57
7.4.240.0040.00416.48
7.4.230.0000.00716.39
7.4.220.0090.00916.55
7.4.210.0070.01116.60
7.4.200.0070.00016.40
7.4.190.0020.00516.62
7.4.160.0140.00716.49
7.4.150.0170.01017.40
7.4.140.0070.01117.86
7.4.130.0110.00716.62
7.4.120.0110.00616.45
7.4.110.0070.01116.54
7.4.100.0170.00016.52
7.4.90.0090.00816.59
7.4.80.0160.00319.39
7.4.70.0030.02216.59
7.4.60.0090.00916.58
7.4.50.0080.00016.34
7.4.40.0030.01222.77
7.4.30.0060.01516.39
7.4.00.0030.01315.21
7.3.330.0030.00313.35
7.3.320.0020.00213.23
7.3.310.0000.00716.40
7.3.300.0070.00016.40
7.3.290.0070.01116.37
7.3.280.0090.00916.34
7.3.270.0120.01217.40
7.3.260.0100.00716.39
7.3.250.0080.00916.52
7.3.240.0160.00016.60
7.3.230.0100.01216.57
7.3.210.0100.00616.44
7.3.200.0100.01319.39
7.3.190.0030.01316.50
7.3.180.0170.00016.26
7.3.170.0060.01016.41
7.3.160.0040.01516.44
7.3.120.0070.01014.80
7.3.10.0120.00716.43
7.3.00.0140.00316.59
7.2.330.0170.00716.70
7.2.320.0070.01316.73
7.2.310.0000.01616.36
7.2.300.0160.00316.41
7.2.290.0110.00716.73
7.2.130.0030.01216.90
7.2.120.0110.00416.77
7.2.110.0090.00316.61
7.2.100.0030.01416.28
7.2.90.0050.00916.81
7.2.80.0060.01316.68
7.2.70.0120.00616.64
7.2.60.0060.00616.59
7.2.50.0040.00816.96
7.2.40.0000.01016.95
7.2.30.0060.00916.80
7.2.20.0000.01316.69
7.2.10.0040.00816.82
7.2.00.0090.00317.01
7.1.250.0070.00415.51
7.1.70.0000.00817.21
7.1.60.0030.01019.82
7.1.50.0100.01416.89
7.1.00.0030.07722.45
7.0.200.0050.00516.84
7.0.140.0070.06022.00
7.0.60.0030.08319.89
7.0.50.0100.08017.73
7.0.40.0070.04320.18
7.0.30.0530.06320.24
7.0.20.0200.08020.30
7.0.10.0300.05720.15
7.0.00.0000.09020.22
5.6.210.0030.08020.68
5.6.200.0000.07018.15
5.6.190.0130.07720.67
5.6.180.3130.04720.54
5.6.170.0300.06720.56
5.6.160.0100.08020.56
5.6.150.0070.03318.18
5.6.140.0070.06018.18
5.6.130.0030.05718.22
5.6.120.0070.04021.05
5.6.110.0100.05721.13
5.6.100.0030.08321.01
5.6.90.0170.05321.10
5.6.80.0130.07320.41
5.6.70.0130.02320.58
5.5.350.0200.04320.43
5.5.340.0070.03717.98
5.5.330.0070.08720.28
5.5.320.0270.03320.24
5.5.310.0230.06720.29
5.5.300.0070.03718.03
5.5.290.0070.06718.03
5.5.280.0070.08320.87
5.5.270.0070.03720.87
5.5.260.0000.09320.97
5.5.250.0070.08720.68
5.5.240.0100.06320.15
5.4.450.0330.05019.20
5.4.440.0730.06019.52
5.4.430.0800.07319.51
5.4.420.0100.05319.40
5.4.410.0170.05018.74
5.4.400.0900.05018.48
5.4.390.0100.05018.79
5.4.380.0230.05018.63
5.4.370.0100.03718.59
5.4.360.0130.03318.61
5.4.350.0060.04912.02
5.4.340.0060.03512.01
5.4.320.0060.03612.50
5.4.310.0060.04212.50
5.4.300.0020.04112.50
5.4.290.0060.03812.50
5.4.280.0070.04012.39
5.4.270.0130.07018.94
5.4.260.0130.07318.90
5.4.250.0030.06018.94
5.4.240.0070.05719.08
5.4.230.0170.06718.75
5.4.220.0200.06718.76
5.4.210.0130.06318.99
5.4.200.0070.07718.94
5.4.190.0100.05018.91
5.4.180.0130.06018.89
5.4.170.0100.05019.09
5.4.160.0070.05718.94
5.4.150.0070.05718.76
5.4.140.0130.05016.64
5.4.130.0200.04716.46
5.4.120.0230.06016.46
5.4.110.0030.07016.44
5.4.100.0170.07016.47
5.4.90.0130.05016.54
5.4.80.0130.06316.68
5.4.70.0200.06016.61
5.4.60.0070.07316.46
5.4.50.0100.05316.45
5.4.40.0070.05016.51
5.4.30.0100.05716.49
5.4.20.0170.04016.45
5.4.10.0070.07716.38
5.4.00.0070.05715.86
5.3.290.0040.04212.80
5.3.280.0200.03714.57
5.3.270.0200.06314.60
5.3.260.0100.07014.83
5.3.250.0070.07714.77
5.3.240.0030.05714.69
5.3.230.0070.05014.58
5.3.220.0070.05714.59
5.3.210.0130.07314.75
5.3.200.0030.05714.65
5.3.190.0130.05714.64
5.3.180.0130.05014.47
5.3.170.0030.05314.74
5.3.160.0070.05014.75
5.3.150.0130.05714.74
5.3.140.0100.06014.46
5.3.130.0130.06014.45
5.3.120.0100.07714.55
5.3.110.0230.06014.38
5.3.100.0070.07014.14
5.3.90.0070.05314.00
5.3.80.0100.05314.08
5.3.70.0100.05714.20
5.3.60.0070.05714.16
5.3.50.0030.06313.98
5.3.40.0130.05013.86
5.3.30.0030.05313.98
5.3.20.0030.05313.86
5.3.10.0000.05713.48
5.3.00.0100.06013.73
5.2.170.0030.04711.14
5.2.160.0070.05311.24
5.2.150.0130.04311.10
5.2.140.0130.04311.05
5.2.130.0070.05711.18
5.2.120.0070.04711.09
5.2.110.0030.06011.17
5.2.100.0100.04011.18
5.2.90.0100.04711.19
5.2.80.0130.04310.93
5.2.70.0170.05011.08
5.2.60.0030.05011.13
5.2.50.0100.04311.12
5.2.40.0170.04011.07
5.2.30.0030.05711.06
5.2.20.0070.05711.14
5.2.10.0130.04310.84
5.2.00.0100.03710.57
5.1.60.0070.05010.00
5.1.50.0030.03710.05
5.1.40.0030.04710.22
5.1.30.0100.04710.34
5.1.20.0100.04010.43
5.1.10.0070.03710.03
5.1.00.0030.0409.91
5.0.50.0070.0338.52
5.0.40.0100.0208.38
5.0.30.0130.0408.31
5.0.20.0030.0378.11
5.0.10.0070.0338.22
5.0.00.0100.0478.26
4.4.90.0070.0206.68
4.4.80.0030.0336.68
4.4.70.0030.0236.68
4.4.60.0070.0236.68
4.4.50.0030.0236.68
4.4.40.0030.0436.68
4.4.30.0070.0236.68
4.4.20.0030.0236.68
4.4.10.0030.0206.68
4.4.00.0000.0376.68
4.3.110.0000.0276.68
4.3.100.0070.0236.68
4.3.90.0070.0176.68
4.3.80.0000.0476.68
4.3.70.0100.0206.68
4.3.60.0030.0306.68
4.3.50.0070.0206.68
4.3.40.0100.0306.68
4.3.30.0030.0276.68
4.3.20.0000.0306.68
4.3.10.0070.0236.68
4.3.00.0070.01013.50

preferences:
71.86 ms | 401 KiB | 5 Q