3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() { throw new Exception('thrown'); } public function A() { return array('a', 'b', 'c'); } public static function I() { return new A(); } } class B extends A { public function __construct() { } } var_dump((new B())->A()[1]);

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.0090.00616.38
8.3.50.0130.00521.94
8.3.40.0000.01418.40
8.3.30.0120.00618.75
8.3.20.0070.00020.30
8.3.10.0040.00423.57
8.3.00.0040.00419.26
8.2.180.0180.00318.16
8.2.170.0070.00722.96
8.2.160.0150.00020.19
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0060.00322.12
8.2.100.0080.00417.93
8.2.90.0030.00619.08
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00419.40
8.2.30.0000.00720.54
8.2.20.0050.00217.72
8.2.10.0030.00618.00
8.2.00.0000.00817.93
8.1.280.0070.01425.92
8.1.270.0080.00023.83
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00320.68
8.1.230.0040.00817.66
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.22
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0040.00421.83
8.1.150.0000.00718.63
8.1.140.0060.00319.32
8.1.130.0030.00617.48
8.1.120.0000.00817.34
8.1.110.0030.00517.21
8.1.100.0050.00217.34
8.1.90.0060.00317.34
8.1.80.0040.00417.31
8.1.70.0070.00017.36
8.1.60.0030.00717.50
8.1.50.0000.00817.46
8.1.40.0040.00417.42
8.1.30.0040.00417.44
8.1.20.0000.00717.57
8.1.10.0020.00517.48
8.1.00.0000.00717.45
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0070.00018.37
8.0.270.0040.00417.08
8.0.260.0000.00617.19
8.0.250.0080.00016.88
8.0.240.0030.00316.86
8.0.230.0070.00016.72
8.0.220.0000.00716.73
8.0.210.0070.00016.61
8.0.200.0000.00616.81
8.0.190.0060.00316.74
8.0.180.0030.00516.69
8.0.170.0000.00916.65
8.0.160.0070.00016.82
8.0.150.0060.00316.59
8.0.140.0070.00016.66
8.0.130.0030.00313.20
8.0.120.0050.00316.75
8.0.110.0040.00416.84
8.0.100.0000.00716.71
8.0.90.0040.00416.57
8.0.80.0040.01116.71
8.0.70.0070.00016.62
8.0.60.0040.00416.64
8.0.50.0040.00416.80
8.0.30.0100.00917.10
8.0.20.0090.01017.40
8.0.10.0000.00716.92
8.0.00.0100.01016.69
7.4.330.0000.00715.08
7.4.320.0030.00316.47
7.4.300.0070.00016.54
7.4.290.0000.00716.50
7.4.280.0000.00716.44
7.4.270.0000.00716.58
7.4.260.0030.00316.51
7.4.250.0000.00816.48
7.4.240.0020.00616.49
7.4.230.0070.00016.60
7.4.220.0090.00916.59
7.4.210.0040.01416.54
7.4.200.0000.00716.43
7.4.160.0120.00916.40
7.4.150.0170.00717.40
7.4.140.0130.00817.86
7.4.130.0100.00716.42
7.4.120.0110.00616.42
7.4.110.0070.01516.21
7.4.100.0140.00416.34
7.4.90.0100.00716.30
7.4.80.0070.01619.39
7.4.70.0090.00616.45
7.4.60.0100.00716.34
7.4.50.0030.00616.20
7.4.40.0120.00616.39
7.4.30.0060.01616.45
7.4.00.0040.01014.67
7.3.330.0000.00613.29
7.3.320.0030.00313.11
7.3.310.0040.00416.15
7.3.300.0030.00316.25
7.3.290.0090.00816.26
7.3.280.0070.00916.28
7.3.270.0100.00717.40
7.3.260.0100.00716.24
7.3.250.0100.00916.36
7.3.240.0090.01016.38
7.3.230.0100.00616.39
7.3.210.0130.00316.52
7.3.200.0060.01016.36
7.3.190.0150.00316.42
7.3.180.0120.00616.54
7.3.170.0040.01216.27
7.3.160.0030.01316.39
7.3.120.0110.00514.62
7.3.110.0070.01114.70
7.3.100.0080.00414.79
7.3.90.0040.00614.81
7.3.80.0060.00914.67
7.3.70.0100.00514.46
7.3.60.0030.01014.60
7.3.50.0080.00414.70
7.3.40.0070.00914.53
7.3.30.0030.01014.77
7.3.20.0020.01116.48
7.3.10.0090.00116.55
7.3.00.0040.00816.68
7.2.330.0070.01016.51
7.2.320.0100.01316.18
7.2.310.0090.00616.46
7.2.300.0120.01216.50
7.2.290.0030.01416.32
7.2.250.0090.01014.95
7.2.240.0090.00914.62
7.2.230.0080.00314.95
7.2.220.0020.01214.93
7.2.210.0050.01114.88
7.2.200.0070.00915.00
7.2.190.0050.00814.64
7.2.180.0020.01314.77
7.2.170.0000.01514.76
7.2.00.0040.00719.07
7.1.330.0060.00815.61
7.1.320.0070.00715.78
7.1.310.0050.00815.70
7.1.300.0070.00615.72
7.1.290.0090.00615.61
7.1.280.0020.01215.89
7.1.270.0070.00715.78
7.1.260.0010.01215.58
7.1.100.0040.00718.18
7.1.70.0040.00417.00
7.1.60.0070.01719.48
7.1.50.0040.00816.75
7.1.00.0070.07322.45
7.0.200.0320.01014.36
7.0.60.0030.04019.87
7.0.50.0030.04017.84
7.0.40.0070.04020.35
7.0.30.0230.08020.30
7.0.20.0270.09020.30
7.0.10.0070.07020.02
7.0.00.0030.05720.32
5.6.210.0130.07720.73
5.6.200.0070.05718.27
5.6.190.0070.08320.49
5.6.180.0170.04020.61
5.6.170.0300.04720.39
5.6.160.0100.08320.39
5.6.150.0070.04018.29
5.6.140.0030.07318.18
5.6.130.0100.07718.27
5.6.120.0030.07321.02
5.6.110.0100.07720.89
5.6.100.0130.05320.98
5.6.90.0170.07321.02
5.6.80.0070.04020.29
5.5.350.4170.04320.39
5.5.340.0100.04017.95
5.5.330.0030.04320.19
5.5.320.0100.08320.46
5.5.310.0470.06720.27
5.5.300.0100.08017.95
5.5.290.0070.08017.94
5.5.280.0170.07720.95
5.5.270.0000.05320.89
5.5.260.0030.04320.96
5.5.250.0070.08320.80
5.5.240.0300.07720.20

preferences:
38.32 ms | 401 KiB | 5 Q