3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ConstructorTest { public function __construct() { echo "ConstructorTest\n"; } } class ConstructorTest1 extends ConstructorTest { public function ConstructorTest1() { parent::__construct(); } } class ConstructorTest2 extends ConstructorTest1 { public function ConstructorTest2() { $this->ConstructorTest1(); } } class ConstructorTest3 extends ConstructorTest2 { public function ConstructorTest2() { parent::__construct(); } } $test1 = new ConstructorTest(); $test2 = new ConstructorTest1(); $test3 = new ConstructorTest2(); $test4 = new ConstructorTest3();

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.0160.00616.75
8.3.50.0080.01021.27
8.3.40.0090.00618.73
8.3.30.0100.00718.59
8.3.20.0000.01118.77
8.3.10.0030.00521.14
8.3.00.0080.00023.39
8.2.180.0040.01416.50
8.2.170.0120.00322.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0030.00720.51
8.2.100.0060.00617.91
8.2.90.0050.00219.22
8.2.80.0050.00517.97
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0070.00018.22
8.2.30.0080.00019.80
8.2.20.0040.00417.60
8.2.10.0050.00217.62
8.2.00.0040.00417.57
8.1.280.0070.01125.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0140.00322.47
8.1.230.0090.00320.89
8.1.220.0060.00318.77
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0080.00017.54
8.1.180.0000.00918.10
8.1.170.0000.00918.34
8.1.160.0000.00718.79
8.1.150.0040.00418.49
8.1.140.0000.00817.30
8.1.130.0000.00717.76
8.1.120.0030.00517.44
8.1.110.0080.00017.36
8.1.100.0040.00417.38
8.1.90.0000.00717.43
8.1.80.0070.00017.45
8.1.70.0030.00317.42
8.1.60.0080.00017.61
8.1.50.0040.00417.48
8.1.40.0030.00517.51
8.1.30.0040.00417.48
8.1.20.0000.00917.64
8.1.10.0040.00417.45
8.1.00.0050.00217.40
8.0.300.0080.00019.95
8.0.290.0040.00417.16
8.0.280.0050.00218.41
8.0.270.0070.00017.28
8.0.260.0000.00716.89
8.0.250.0000.00716.79
8.0.240.0040.00416.93
8.0.230.0000.00616.85
8.0.220.0070.00016.86
8.0.210.0030.00316.86
8.0.200.0030.00316.90
8.0.190.0000.00716.83
8.0.180.0070.00316.76
8.0.170.0060.00316.77
8.0.160.0000.00716.81
8.0.150.0040.00416.83
8.0.140.0070.00016.68
8.0.130.0000.00613.27
8.0.120.0040.00416.76
8.0.110.0070.00016.80
8.0.100.0000.00716.88
8.0.90.0030.00416.87
8.0.80.0110.01116.78
8.0.70.0000.00716.72
8.0.60.0040.00416.69
8.0.50.0040.00416.70
8.0.30.0100.01017.00
8.0.20.0170.00517.40
8.0.10.0080.00016.96
8.0.00.0130.00916.82
7.4.330.0020.00214.78
7.4.320.0000.00616.55
7.4.300.0000.00616.58
7.4.290.0000.00716.61
7.4.280.0000.00816.42
7.4.270.0030.00316.60
7.4.260.0000.00613.28
7.4.250.0050.00316.56
7.4.240.0000.00716.44
7.4.230.0030.00316.67
7.4.220.0100.01016.53
7.4.210.0080.00816.58
7.4.200.0070.00016.42
7.4.190.0030.00316.41
7.4.160.0110.00616.59
7.4.150.0080.00817.40
7.4.140.0100.00717.86
7.4.130.0120.00516.58
7.4.120.0110.00616.55
7.4.110.0090.00916.48
7.4.100.0100.00916.50
7.4.90.0110.00616.60
7.4.80.0140.00619.37
7.4.70.0130.01016.53
7.4.60.0100.00716.66
7.4.50.0040.00416.34
7.4.40.0160.00022.27
7.4.30.0100.00716.21
7.4.00.0050.01314.75
7.3.330.0000.00513.13
7.3.320.0000.00513.29
7.3.310.0030.00316.27
7.3.300.0030.00316.25
7.3.290.0030.01116.38
7.3.280.0070.01216.31
7.3.270.0090.00917.40
7.3.260.0120.00718.24
7.3.250.0110.01116.35
7.3.240.0070.01016.32
7.3.230.0110.01116.39
7.3.210.0110.00816.29
7.3.200.0090.00919.39
7.3.190.0070.01016.31
7.3.180.0140.00316.36
7.3.170.0080.00816.43
7.3.160.0100.00616.53
7.3.120.0050.00914.61
7.3.110.0090.00914.81
7.3.100.0030.01314.82
7.3.90.0030.01014.68
7.3.80.0070.00414.78
7.3.70.0040.00414.72
7.3.60.0100.00714.44
7.3.50.0120.00314.74
7.3.40.0110.00414.75
7.3.30.0030.01014.72
7.3.20.0030.00616.34
7.3.10.0060.00616.54
7.3.00.0030.01216.31
7.2.330.0080.01116.55
7.2.320.0140.00716.50
7.2.310.0090.01316.53
7.2.300.0080.01216.40
7.2.290.0100.01016.59
7.2.250.0070.01014.78
7.2.240.0090.00914.83
7.2.230.0030.00914.66
7.2.220.0070.01015.09
7.2.210.0040.00815.08
7.2.200.0070.00414.94
7.2.190.0100.00314.86
7.2.180.0030.01214.88
7.2.170.0080.00815.03
7.2.60.0040.01116.83
7.2.00.0110.00019.18
7.1.330.0040.01115.76
7.1.320.0070.00415.55
7.1.310.0040.00715.38
7.1.300.0080.00015.39
7.1.290.0040.01415.18
7.1.280.0090.00015.48
7.1.270.0060.00915.77
7.1.260.0100.00315.32
7.1.200.0040.01115.62
7.1.70.0030.00516.90
7.1.60.0000.01317.13
7.1.50.0100.01416.80
7.1.00.0030.07022.43
7.0.200.0030.01016.76
7.0.140.0030.07321.95
7.0.60.0000.08021.83
7.0.50.0130.07722.07
7.0.40.0030.09019.99
7.0.30.0070.07720.08
7.0.20.0000.05720.06
7.0.10.0030.07720.06
7.0.00.0030.08320.18
5.6.280.0100.07021.04
5.6.210.0000.07320.54
5.6.200.0130.07321.16
5.6.190.0070.07720.91
5.6.180.0100.07021.00
5.6.170.0030.08021.00
5.6.160.0100.07021.16
5.6.150.0030.08021.13
5.6.140.0030.04321.03
5.6.130.0030.08321.15
5.6.120.0000.07721.01
5.6.110.0070.04720.90
5.6.100.0070.08021.00
5.6.90.0000.09020.99
5.6.80.0100.07320.41
5.6.70.0000.08320.37
5.6.60.0030.08020.40
5.6.50.0000.08020.49
5.6.40.0030.07320.37
5.6.30.0000.05020.35
5.6.20.0030.06320.50
5.6.10.0070.07320.40
5.6.00.0030.07720.32
5.5.350.0030.04720.50
5.5.340.0130.07020.82
5.5.330.0030.07720.89
5.5.320.0000.07720.89
5.5.310.0100.06720.86
5.5.300.0000.07020.91
5.5.290.0000.09320.89
5.5.280.0070.06320.99
5.5.270.0000.08320.89
5.5.260.0070.06320.77
5.5.250.0030.08320.56
5.5.240.0100.07020.27
5.5.230.0000.08320.12
5.5.220.0070.06020.19
5.5.210.0030.06720.28
5.5.200.0070.08020.17
5.5.190.0030.04320.23
5.5.180.0030.05320.26
5.5.160.0070.07020.26
5.5.150.0130.07020.15
5.5.140.0100.06020.33
5.5.130.0000.08320.14
5.5.120.0030.07320.16
5.5.110.0030.07020.20
5.5.100.0000.07320.06
5.5.90.0070.07720.13
5.5.80.0030.05320.23
5.5.70.0000.07020.11
5.5.60.0130.06720.13
5.5.50.0030.07020.14
5.5.40.0100.06720.05
5.5.30.0000.08320.21
5.5.20.0030.07319.89
5.5.10.0030.06020.01
5.5.00.0030.03720.00
5.4.450.0030.07319.23
5.4.440.0030.07719.54
5.4.430.0070.07019.40
5.4.420.0030.07319.22
5.4.410.0100.07019.37
5.4.400.0030.07019.07
5.4.390.0000.05719.21
5.4.380.0000.06719.05
5.4.370.0070.05719.22
5.4.360.0100.06018.93
5.4.350.0070.06019.04
5.4.340.0030.07019.12
5.4.320.0000.05319.07
5.4.310.0000.06719.07
5.4.300.0070.07719.03
5.4.290.0070.06719.03
5.4.280.0030.07719.06
5.4.270.0030.07018.93
5.4.260.0030.06319.01
5.4.250.0000.07019.12
5.4.240.0030.07718.92
5.4.230.0070.07019.07
5.4.220.0000.07719.04
5.4.210.0100.06018.90
5.4.200.0000.07019.11
5.4.190.0030.05319.02
5.4.180.0100.07319.11
5.4.170.0000.04319.15
5.4.160.0000.04019.20
5.4.150.0030.03319.05
5.4.140.0030.03316.39
5.4.130.0000.03716.25
5.4.120.0000.03716.51
5.4.110.0070.03016.33
5.4.100.0070.02716.60
5.4.90.0070.03016.37
5.4.80.0000.03716.29
5.4.70.0000.03016.58
5.4.60.0030.03716.48
5.4.50.0030.02716.48
5.4.40.0070.02316.39
5.4.30.0000.02716.45
5.4.20.0030.03316.56
5.4.10.0030.02716.22
5.4.00.0000.03015.86
5.3.290.0000.08314.72
5.3.280.0100.05714.65
5.3.270.0030.03714.71
5.3.260.0000.03714.48
5.3.250.0130.02714.67
5.3.240.0000.03714.62
5.3.230.0000.03714.66
5.3.220.0000.03714.65
5.3.210.0070.03314.67
5.3.200.0030.03314.64
5.3.190.0000.04014.61
5.3.180.0030.03714.61
5.3.170.0000.03714.61
5.3.160.0000.03714.62
5.3.150.0030.03714.62
5.3.140.0000.03014.67
5.3.130.0000.03314.66
5.3.120.0000.03014.52
5.3.110.0070.03714.66
5.3.100.0000.03013.95
5.3.90.0000.03014.01
5.3.80.0000.03014.11
5.3.70.0030.02714.10
5.3.60.0030.03014.10
5.3.50.0000.03013.95
5.3.40.0000.03014.03
5.3.30.0000.04013.82
5.3.20.0030.02713.78
5.3.10.0000.03013.51
5.3.00.0000.03313.56
5.2.170.0030.02311.21
5.2.160.0000.02311.21
5.2.150.0000.02711.26
5.2.140.0000.02311.16
5.2.130.0000.02311.02
5.2.120.0030.02011.01
5.2.110.0000.02311.11
5.2.100.0000.03011.01
5.2.90.0030.02711.17
5.2.80.0000.02311.12
5.2.70.0000.03311.09
5.2.60.0000.04311.12
5.2.50.0000.02711.12
5.2.40.0000.02711.05
5.2.30.0000.02311.04
5.2.20.0030.02010.98
5.2.10.0000.04310.98
5.2.00.0000.04010.98
5.1.60.0000.02010.98
5.1.50.0000.02010.98
5.1.40.0000.02010.98
5.1.30.0000.02310.98
5.1.20.0000.02010.98
5.1.10.0000.03710.98
5.1.00.0000.03710.98
5.0.50.0070.02710.98
5.0.40.0000.04310.98
5.0.30.0000.06710.98
5.0.20.0000.03310.98
5.0.10.0030.04310.98
5.0.00.0030.06010.98
4.4.90.0000.01710.98
4.4.80.0030.01310.98
4.4.70.0000.01710.98
4.4.60.0000.01310.98
4.4.50.0000.01710.98
4.4.40.0000.02010.98
4.4.30.0000.01310.98
4.4.20.0000.01310.98
4.4.10.0000.03710.98
4.4.00.0070.05310.98
4.3.110.0030.03010.98
4.3.100.0000.03710.98
4.3.90.0000.03010.98
4.3.80.0000.05010.98
4.3.70.0070.02310.98
4.3.60.0000.03310.98
4.3.50.0000.03310.98
4.3.40.0030.05010.98
4.3.30.0000.03310.98
4.3.20.0000.03310.98
4.3.10.0000.03010.98
4.3.00.0000.03010.98

preferences:
36.04 ms | 401 KiB | 5 Q