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(); echo "ConstructorTest1\n"; } } class ConstructorTest2 extends ConstructorTest1 { public function ConstructorTest2() { $this->ConstructorTest1(); echo "ConstructorTest2\n"; } } class ConstructorTest3 extends ConstructorTest2 { public function ConstructorTest2() { parent::__construct(); echo "ConstructorTest3\n"; } } $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.0110.00418.55
8.3.50.0080.00921.21
8.3.40.0090.00618.54
8.3.30.0100.00620.21
8.3.20.0000.00820.34
8.3.10.0080.00022.10
8.3.00.0080.00022.29
8.2.180.0100.00616.38
8.2.170.0110.00322.96
8.2.160.0070.00722.21
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.01226.16
8.2.120.0000.00720.82
8.2.110.0060.00320.45
8.2.100.0070.00417.72
8.2.90.0050.00319.21
8.2.80.0030.00617.97
8.2.70.0040.00417.75
8.2.60.0070.00018.04
8.2.50.0000.00818.07
8.2.40.0040.00420.00
8.2.30.0030.00519.50
8.2.20.0040.00417.67
8.2.10.0000.00717.67
8.2.00.0000.00717.72
8.1.280.0110.00725.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.07
8.1.230.0000.01117.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.40
8.1.180.0080.00418.10
8.1.170.0030.00518.53
8.1.160.0030.00718.89
8.1.150.0030.00618.64
8.1.140.0050.00317.27
8.1.130.0000.00817.81
8.1.120.0040.00417.33
8.1.110.0000.00917.42
8.1.100.0000.00717.28
8.1.90.0070.00017.27
8.1.80.0000.00817.36
8.1.70.0080.00017.30
8.1.60.0000.00917.48
8.1.50.0040.00417.47
8.1.40.0040.00417.47
8.1.30.0000.00817.66
8.1.20.0040.00417.58
8.1.10.0070.00017.61
8.1.00.0030.00617.36
8.0.300.0000.00718.77
8.0.290.0000.00916.75
8.0.280.0040.00418.43
8.0.270.0050.00217.26
8.0.260.0030.00316.74
8.0.250.0030.00316.81
8.0.240.0030.00516.91
8.0.230.0070.00016.84
8.0.220.0070.00016.71
8.0.210.0040.00416.77
8.0.200.0030.00316.88
8.0.190.0000.00916.80
8.0.180.0000.00716.87
8.0.170.0040.00416.74
8.0.160.0000.00716.96
8.0.150.0050.00216.74
8.0.140.0000.00716.77
8.0.130.0030.00313.30
8.0.120.0050.00316.79
8.0.110.0000.00816.90
8.0.100.0040.00416.71
8.0.90.0000.00716.88
8.0.80.0030.01216.76
8.0.70.0070.00016.70
8.0.60.0040.00416.77
8.0.50.0000.00716.79
8.0.30.0120.00617.13
8.0.20.0100.00817.40
8.0.10.0080.00016.98
8.0.00.0100.01116.69
7.4.330.0020.00516.84
7.4.320.0060.00016.57
7.4.300.0000.00716.53
7.4.290.0000.00716.46
7.4.280.0000.00716.51
7.4.270.0000.00716.49
7.4.260.0000.00613.38
7.4.250.0050.00316.61
7.4.240.0030.00416.52
7.4.230.0070.00016.56
7.4.220.0090.00916.56
7.4.210.0040.01016.58
7.4.200.0030.00316.70
7.4.190.0000.00716.44
7.4.160.0120.00416.56
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0050.01216.47
7.4.120.0110.00916.53
7.4.110.0110.00916.43
7.4.100.0080.00816.63
7.4.90.0130.00316.38
7.4.80.0120.00619.39
7.4.70.0090.01216.60
7.4.60.0060.00916.39
7.4.50.0050.00016.58
7.4.40.0030.01322.77
7.4.30.0070.00916.30
7.4.00.0080.00814.82
7.3.330.0050.00013.16
7.3.320.0050.00013.13
7.3.310.0000.00816.33
7.3.300.0000.00716.16
7.3.290.0030.01116.29
7.3.280.0090.00816.26
7.3.270.0070.01017.40
7.3.260.0150.00916.28
7.3.250.0130.00616.41
7.3.240.0100.01316.29
7.3.230.0130.00316.39
7.3.210.0120.00616.35
7.3.200.0040.01719.39
7.3.190.0040.01416.24
7.3.180.0100.00616.37
7.3.170.0120.00416.43
7.3.160.0150.00316.30
7.3.120.0030.01014.80
7.2.330.0080.00816.64
7.2.320.0070.01016.59
7.2.310.0070.01016.62
7.2.300.0060.00916.35
7.2.290.0030.01216.79
7.2.60.0030.01116.86
7.1.200.0070.00715.68
7.1.100.0000.01418.12
7.1.70.0030.00317.10
7.1.60.0100.01319.21
7.1.50.0060.01216.85
7.1.00.0030.05322.54
7.0.200.0150.00414.70
7.0.140.0030.07721.92
7.0.80.0430.08719.96
7.0.70.0530.05019.88
7.0.60.0200.08720.07
7.0.50.0470.08320.33
7.0.40.0100.07720.05
7.0.30.0000.07020.11
7.0.20.0030.05019.94
7.0.10.0070.08320.06
7.0.00.0200.07019.94
5.6.280.0070.07320.77
5.6.230.0070.08320.52
5.6.220.0070.08020.61
5.6.210.0100.07320.57
5.6.200.0130.07020.98
5.6.190.0030.08320.96
5.6.180.0170.08020.95
5.6.170.0130.07721.14
5.6.160.0100.08021.07
5.6.150.0100.05321.04
5.6.140.0030.08321.11
5.6.130.0070.06021.18
5.6.120.0130.05721.02
5.6.110.0030.06021.04
5.6.100.0000.05721.02
5.6.90.0130.07721.09
5.6.80.0100.08020.41
5.6.70.0070.08320.43
5.6.60.0130.06720.41
5.6.50.0070.08720.36
5.6.40.0070.07020.41
5.6.30.0100.06320.29
5.6.20.0030.04020.44
5.6.10.0130.03720.44
5.6.00.0070.03720.39
5.5.370.0030.08320.41
5.5.360.0100.08020.55
5.5.350.0170.07320.41
5.5.340.0070.08320.93
5.5.330.0100.08320.81
5.5.320.0000.08320.89
5.5.310.0070.07720.90
5.5.300.0100.08320.84
5.5.290.0070.05720.88
5.5.280.0270.07020.77
5.5.270.0100.04020.88
5.5.260.0170.07320.88
5.5.250.0100.08320.59
5.5.240.0070.07020.17
5.5.230.0130.08020.18
5.5.220.0100.07320.30
5.5.210.0000.08720.25
5.5.200.0030.05320.29
5.5.190.0000.04720.12
5.5.180.0070.03720.25
5.5.160.0030.04020.26
5.5.150.0030.04320.29
5.5.140.0130.03720.13
5.5.130.0070.04320.28
5.5.120.0030.04720.21
5.5.110.0000.07720.13
5.5.100.0030.04020.09
5.5.90.0070.05320.05
5.5.80.0070.07020.14
5.5.70.0070.07319.97
5.5.60.0030.03720.07
5.5.50.0070.04020.09
5.5.40.0170.05020.03
5.5.30.0000.04320.07
5.5.20.0070.03720.08
5.5.10.0000.04719.97
5.5.00.0070.07720.08
5.4.450.0070.08319.36
5.4.440.0100.08319.45
5.4.430.0070.05319.27
5.4.420.0000.08319.52
5.4.410.0030.08319.14
5.4.400.0030.05718.85
5.4.390.0030.08318.85
5.4.380.0170.07019.03
5.4.370.0070.04319.12
5.4.360.0030.08019.15
5.4.350.0000.04319.13
5.4.340.0000.04019.13
5.4.320.0070.08019.13
5.4.310.0000.04719.05
5.4.300.0070.05719.20
5.4.290.0030.04718.84
5.4.280.0030.04018.94
5.4.270.0000.04019.18
5.4.260.0000.04319.12
5.4.250.0030.03718.84
5.4.240.0000.03719.11
5.4.230.0070.03719.04
5.4.220.0130.03019.22
5.4.210.0100.02719.02
5.4.200.0100.02719.04
5.4.190.0000.03719.07
5.4.180.0030.03719.13
5.4.170.0030.05719.11
5.4.160.0100.03018.93
5.4.150.0100.04019.11
5.4.140.0070.03316.38
5.4.130.0100.04316.45
5.4.120.0100.02316.52
5.4.110.0070.05716.49
5.4.100.0070.03316.52
5.4.90.0070.03016.49
5.4.80.0000.03316.50
5.4.70.0070.05016.38
5.4.60.0000.03316.56
5.4.50.0000.03316.29
5.4.40.0070.02716.41
5.4.30.0030.03016.36
5.4.20.0100.05016.44
5.4.10.0030.03016.45
5.4.00.0000.04015.86
5.3.290.0030.08014.67
5.3.280.0070.03714.71
5.3.270.0030.03714.61
5.3.260.0070.04014.72
5.3.250.0030.04314.67
5.3.240.0030.03714.75
5.3.230.0030.03014.70
5.3.220.0030.03714.56
5.3.210.0070.04314.57
5.3.200.0030.04014.68
5.3.190.0030.05714.71
5.3.180.0070.03314.53
5.3.170.0100.03014.69
5.3.160.0100.03014.68
5.3.150.0000.06014.63
5.3.140.0000.03714.51
5.3.130.0030.05314.64
5.3.120.0070.03014.54
5.3.110.0030.05714.64
5.3.100.0030.03713.99
5.3.90.0000.05313.95
5.3.80.0000.03314.09
5.3.70.0030.03714.13
5.3.60.0070.03314.04
5.3.50.0000.03714.08
5.3.40.0030.03713.87
5.3.30.0030.03313.82
5.3.20.0000.04313.68
5.3.10.0030.07713.59
5.3.00.0030.06713.77
5.2.170.0070.02011.63
5.2.160.0030.03011.63
5.2.150.0000.03711.63
5.2.140.0000.03011.63
5.2.130.0030.02711.63
5.2.120.0030.05711.63
5.2.110.0030.06311.63
5.2.100.0030.03311.63
5.2.90.0070.05711.63
5.2.80.0130.05311.63
5.2.70.0030.06011.63
5.2.60.0070.06011.63
5.2.50.0070.06011.63
5.2.40.0170.04711.63
5.2.30.0000.05311.63
5.2.20.0070.04711.63
5.2.10.0030.04711.63
5.2.00.0100.05711.63
5.1.60.0100.04711.63
5.1.50.0030.04311.63
5.1.40.0000.04311.63
5.1.30.0070.04711.63
5.1.20.0130.04711.63
5.1.10.0000.05711.63
5.1.00.0130.04711.63
5.0.50.0030.04311.63
5.0.40.0030.04711.63
5.0.30.0070.04711.63
5.0.20.0000.04711.63
5.0.10.0030.04011.63
5.0.00.0030.06011.63
4.4.90.0030.03711.63
4.4.80.0030.03011.63
4.4.70.0070.03011.63
4.4.60.0070.03011.63
4.4.50.0030.02711.63
4.4.40.0030.05311.63
4.4.30.0030.02711.63
4.4.20.0000.04011.63
4.4.10.0070.03011.63
4.4.00.0100.03711.63
4.3.110.0030.03311.63
4.3.100.0070.03011.63
4.3.90.0030.03711.63
4.3.80.0030.05311.63
4.3.70.0030.03311.63
4.3.60.0030.03311.63
4.3.50.0030.01711.63
4.3.40.0000.05311.63
4.3.30.0000.03711.63
4.3.20.0000.03711.63
4.3.10.0000.03711.63
4.3.00.0070.02711.63

preferences:
52.11 ms | 401 KiB | 5 Q