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); $this->test(); var_dump($this); } } public function test() { echo 'test' . PHP_EOL; } } $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.0140.00718.14
8.3.50.0150.01521.98
8.3.40.0110.00418.84
8.3.30.0060.00919.08
8.3.20.0030.00520.16
8.3.10.0060.00321.79
8.3.00.0050.00222.51
8.2.180.0110.01116.75
8.2.170.0100.00722.96
8.2.160.0070.00720.45
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0100.00626.16
8.2.120.0040.00420.99
8.2.110.0060.00322.09
8.2.100.0040.00819.63
8.2.90.0060.00619.05
8.2.80.0050.00318.00
8.2.70.0040.00417.63
8.2.60.0080.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.32
8.2.30.0070.00017.93
8.2.20.0000.00717.66
8.2.10.0040.00417.80
8.2.00.0070.00017.82
8.1.280.0110.00325.92
8.1.270.0080.00022.07
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0080.00023.86
8.1.230.0070.00418.78
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01117.36
8.1.190.0080.00017.41
8.1.180.0090.00018.10
8.1.170.0000.00818.48
8.1.160.0000.00722.05
8.1.150.0040.00418.62
8.1.140.0000.00817.43
8.1.130.0000.00717.82
8.1.120.0000.00717.37
8.1.110.0030.00517.45
8.1.100.0030.00517.35
8.1.90.0000.00717.34
8.1.80.0030.00517.46
8.1.70.0000.00717.30
8.1.60.0060.00317.55
8.1.50.0030.00517.48
8.1.40.0080.00017.50
8.1.30.0030.00617.59
8.1.20.0000.00817.64
8.1.10.0040.00417.50
8.1.00.0070.00317.39
8.0.300.0030.00618.77
8.0.290.0000.00717.28
8.0.280.0040.00418.45
8.0.270.0070.00017.32
8.0.260.0070.00016.77
8.0.250.0000.00716.83
8.0.240.0000.00816.91
8.0.230.0030.00316.90
8.0.220.0030.00316.80
8.0.210.0060.00016.80
8.0.200.0030.00616.91
8.0.190.0060.00316.88
8.0.180.0070.00016.90
8.0.170.0070.00016.89
8.0.160.0000.00816.93
8.0.150.0030.00316.85
8.0.140.0040.00416.80
8.0.130.0030.00313.34
8.0.120.0030.00616.95
8.0.110.0070.00016.95
8.0.100.0040.00416.98
8.0.90.0000.00716.79
8.0.80.0070.00716.84
8.0.70.0030.00516.86
8.0.60.0000.00717.02
8.0.50.0030.00517.02
8.0.30.0100.01017.11
8.0.20.0120.01117.40
8.0.10.0050.00316.90
8.0.00.0140.00816.78
7.4.330.0000.00515.09
7.4.320.0030.00316.63
7.4.300.0000.00616.41
7.4.290.0000.00716.46
7.4.280.0000.00716.49
7.4.270.0000.00716.49
7.4.260.0000.00716.60
7.4.250.0000.00716.45
7.4.240.0050.00216.59
7.4.230.0000.00716.50
7.4.220.0120.00616.58
7.4.210.0090.00716.48
7.4.200.0070.00016.39
7.4.190.0000.00716.69
7.4.160.0090.00616.84
7.4.150.0100.01417.40
7.4.140.0110.00617.86
7.4.130.0080.01016.47
7.4.120.0020.01616.54
7.4.110.0120.00616.47
7.4.100.0060.01216.53
7.4.90.0140.00416.50
7.4.80.0140.00819.39
7.4.70.0090.00916.68
7.4.60.0100.00716.55
7.4.50.0030.00516.74
7.4.40.0030.01022.77
7.4.30.0090.00916.57
7.4.00.0110.00714.92
7.3.330.0000.00513.24
7.3.320.0030.00313.24
7.3.310.0000.00716.37
7.3.300.0000.00716.43
7.3.290.0090.00616.39
7.3.280.0080.00816.37
7.3.270.0160.00617.40
7.3.260.0110.00616.63
7.3.250.0110.00816.53
7.3.240.0130.00316.48
7.3.230.0060.01216.39
7.3.210.0130.00616.43
7.3.200.0080.00819.39
7.3.190.0080.00816.36
7.3.180.0030.01316.36
7.3.170.0150.00016.44
7.3.160.0140.00716.42
7.3.120.0070.00714.84
7.3.10.0130.01316.22
7.3.00.0110.00716.50
7.2.330.0150.00316.83
7.2.320.0060.01716.61
7.2.310.0070.01016.75
7.2.300.0120.00616.79
7.2.290.0100.00716.68
7.2.130.0110.01416.49
7.2.120.0070.01716.38
7.2.110.0090.00916.41
7.2.100.0140.00716.03
7.2.90.0030.01716.73
7.2.80.0120.01616.29
7.2.70.0130.01016.40
7.2.60.0110.00816.67
7.2.50.0120.01616.66
7.2.40.0120.00615.88
7.2.30.0220.01116.70
7.2.20.0090.01416.24
7.2.10.0030.01316.29
7.2.00.0090.01118.00
7.1.250.0130.00815.03
7.1.200.0100.00315.89
7.1.100.0040.00817.98
7.1.70.0000.00816.75
7.1.60.0000.01117.06
7.1.50.0170.01734.39
7.1.00.0030.07722.41
7.0.200.0080.00816.73
7.0.140.0000.07722.00
7.0.60.0100.08319.89
7.0.50.0000.05317.88
7.0.40.0030.08320.27
7.0.30.0270.07320.08
7.0.20.0330.05320.25
7.0.10.0200.05320.08
7.0.00.0070.09020.23
5.6.280.0000.07721.07
5.6.210.0030.04020.48
5.6.200.0070.04718.28
5.6.190.0200.07320.61
5.6.180.3100.04720.64
5.6.170.0170.04320.45
5.6.160.0070.08720.39
5.6.150.0070.03718.25
5.6.140.0100.03318.23
5.6.130.0030.04018.18
5.6.120.0070.06321.02
5.6.110.0200.07321.12
5.6.100.0130.06720.89
5.6.90.0170.07320.93
5.6.80.0100.03720.54
5.6.70.0170.03720.37
5.5.350.0000.07720.45
5.5.340.0070.08317.98
5.5.330.0100.06320.31
5.5.320.0170.04720.37
5.5.310.0370.06720.24
5.5.300.0130.06717.98
5.5.290.0030.08017.98
5.5.280.0070.08720.90
5.5.270.0030.05320.80
5.5.260.0070.08720.87
5.5.250.0100.07020.58
5.5.240.0000.04020.37
5.4.450.0130.05319.30
5.4.440.0200.05319.35
5.4.430.0030.06319.39
5.4.420.0070.06319.32
5.4.410.0030.06019.43
5.4.400.0770.00018.77
5.4.390.0830.00018.79
5.4.380.0230.05318.50
5.4.370.0230.06018.80
5.4.360.0230.05318.77
5.4.350.0170.06018.57
5.4.340.0230.04718.75
5.4.320.0050.03712.50
5.4.310.0060.03812.50
5.4.300.0050.03812.51
5.4.290.0060.04212.50
5.4.280.0060.03712.39
5.4.270.0100.07018.83
5.4.260.0170.07019.02
5.4.250.0030.05318.95
5.4.240.0170.07719.09
5.4.230.0100.06718.94
5.4.220.0100.05318.98
5.4.210.0070.07018.99
5.4.200.0070.08018.84
5.4.190.0200.04018.93
5.4.180.0030.06018.64
5.4.170.0030.07018.78
5.4.160.0100.05718.99
5.4.150.0070.07718.74
5.4.140.0130.07016.36
5.4.130.0100.06716.44
5.4.120.0070.07316.41
5.4.110.0130.07016.46
5.4.100.0070.05316.54
5.4.90.0070.05316.44
5.4.80.0030.07316.44
5.4.70.0070.06016.55
5.4.60.0130.04316.47
5.4.50.0070.05716.38
5.4.40.0100.06716.43
5.4.30.0100.06716.62
5.4.20.0070.07716.49
5.4.10.0100.05316.39
5.4.00.0230.06015.93
5.3.290.0080.04812.80
5.3.280.0130.05014.63
5.3.270.0070.07314.45
5.3.260.0030.06714.72
5.3.250.0070.07314.71
5.3.240.0030.08014.80
5.3.230.0200.06314.66
5.3.220.0100.05014.58
5.3.210.0100.07714.48
5.3.200.0170.06314.76
5.3.190.0100.06014.57
5.3.180.0200.05314.58
5.3.170.0170.05314.66
5.3.160.0230.05314.48
5.3.150.0130.06314.56
5.3.140.0130.06014.58
5.3.130.0170.04714.56
5.3.120.0030.06014.63
5.3.110.0100.08014.39
5.3.100.0070.05713.95
5.3.90.0000.05714.02
5.3.80.0030.06014.01
5.3.70.0100.06713.99
5.3.60.0170.06314.17
5.3.50.0070.04713.95
5.3.40.0130.04314.02
5.3.30.0070.06713.94
5.3.20.0030.05013.86
5.3.10.0170.05313.65
5.3.00.0100.04713.74
5.2.170.0070.04311.23
5.2.160.0130.04310.98
5.2.150.0070.04011.13
5.2.140.0070.05711.13
5.2.130.0130.04011.19
5.2.120.0100.03711.06
5.2.110.0070.04311.29
5.2.100.0030.06011.28
5.2.90.0070.05711.19
5.2.80.0070.04711.09
5.2.70.0030.05011.27
5.2.60.0130.04011.22
5.2.50.0030.05011.11
5.2.40.0030.05011.22
5.2.30.0030.06011.07
5.2.20.0130.04711.05
5.2.10.0030.05710.86
5.2.00.0000.05310.74
5.1.60.0000.05710.01
5.1.50.0230.03310.06
5.1.40.0070.04310.14
5.1.30.0000.05710.34
5.1.20.0070.04710.45
5.1.10.0030.0409.91
5.1.00.0000.0539.99
5.0.50.0030.0308.47
5.0.40.0070.0238.25
5.0.30.0030.0408.15
5.0.20.0000.0378.18
5.0.10.0100.0278.38
5.0.00.0070.0408.41
4.4.90.0000.0276.07
4.4.80.0070.0276.07
4.4.70.0030.0306.07
4.4.60.0100.0236.07
4.4.50.0030.0276.07
4.4.40.0070.0406.07
4.4.30.0030.0306.07
4.4.20.0030.0206.07
4.4.10.0000.0236.07
4.4.00.0030.0336.07
4.3.110.0070.0206.07
4.3.100.0070.0176.07
4.3.90.0000.0236.07
4.3.80.0000.0436.07
4.3.70.0030.0206.07
4.3.60.0030.0276.07
4.3.50.0100.0176.07
4.3.40.0000.0436.07
4.3.30.0030.0236.07
4.3.20.0000.0336.07
4.3.10.0070.0206.07
4.3.00.0130.0206.48

preferences:
47.67 ms | 401 KiB | 5 Q