3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class C { private $s; public function __construct($s) { $this->s = $s; } protected function getS() { return $this->s; } } class C1 extends C { public function __get($name) { return 'wanted'.$name; } public function __construct($s1) { parent::__construct($s1); } function doStuff() { echo $this->getS(); echo $this->s; } } $c1 = new C1('foo'); $c1->doStuff();

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.0070.00716.63
8.3.50.0060.01421.94
8.3.40.0070.00718.57
8.3.30.0090.00618.54
8.3.20.0070.00020.12
8.3.10.0000.00723.70
8.3.00.0060.00319.38
8.2.180.0100.00716.63
8.2.170.0140.00322.96
8.2.160.0000.01420.33
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00820.47
8.2.120.0080.00026.35
8.2.110.0060.00320.39
8.2.100.0120.00018.00
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0070.00017.80
8.2.50.0000.00818.07
8.2.40.0060.00321.02
8.2.30.0050.00320.50
8.2.20.0040.00717.75
8.2.10.0040.00417.95
8.2.00.0000.00718.05
8.1.280.0000.01525.92
8.1.270.0070.01123.82
8.1.260.0040.00428.09
8.1.250.0090.00028.09
8.1.240.0060.00322.20
8.1.230.0040.00817.53
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0080.00017.50
8.1.180.0040.00418.10
8.1.170.0000.00820.25
8.1.160.0000.00721.85
8.1.150.0070.00018.70
8.1.140.0030.00619.56
8.1.130.0030.00317.62
8.1.120.0070.00017.45
8.1.110.0050.00317.40
8.1.100.0000.00717.34
8.1.90.0000.00817.33
8.1.80.0000.00817.40
8.1.70.0070.00017.35
8.1.60.0090.00017.59
8.1.50.0000.00817.55
8.1.40.0000.00817.53
8.1.30.0000.00817.63
8.1.20.0040.00417.60
8.1.10.0050.00317.48
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.50
8.0.270.0030.00317.25
8.0.260.0000.00717.16
8.0.250.0030.00316.97
8.0.240.0000.00717.00
8.0.230.0070.00016.85
8.0.220.0070.00016.86
8.0.210.0040.00416.71
8.0.200.0060.00016.81
8.0.190.0080.00017.01
8.0.180.0040.00416.77
8.0.170.0000.00816.88
8.0.160.0020.00516.92
8.0.150.0000.00816.95
8.0.140.0000.00716.88
8.0.130.0030.00313.27
8.0.120.0000.00716.84
8.0.110.0040.00416.88
8.0.100.0050.00316.70
8.0.90.0040.00416.93
8.0.80.0030.01216.73
8.0.70.0000.00816.64
8.0.60.0030.00516.76
8.0.50.0040.00416.88
8.0.30.0100.00816.95
8.0.20.0130.00617.41
8.0.10.0050.00316.91
8.0.00.0080.01216.93
7.4.330.0000.00516.89
7.4.320.0050.00216.39
7.4.300.0030.00316.51
7.4.290.0070.00016.51
7.4.280.0060.00316.49
7.4.270.0030.00316.60
7.4.260.0030.00516.51
7.4.250.0030.00316.39
7.4.240.0020.00516.61
7.4.230.0070.00016.57
7.4.220.0130.00616.45
7.4.210.0070.01416.40
7.4.200.0070.00016.36
7.4.160.0170.00316.56
7.4.150.0130.00617.40
7.4.140.0080.01117.86
7.4.130.0070.01216.56
7.4.120.0100.00716.58
7.4.110.0130.00516.49
7.4.100.0060.01716.64
7.4.90.0120.01016.49
7.4.80.0130.00719.39
7.4.70.0120.00616.69
7.4.60.0060.01016.56
7.4.50.0060.00916.41
7.4.40.0080.00816.21
7.4.30.0100.00616.59
7.4.10.0030.01615.13
7.4.00.0050.01014.82
7.3.330.0000.00712.97
7.3.320.0000.00513.06
7.3.310.0000.00716.05
7.3.300.0000.00616.16
7.3.290.0070.00716.22
7.3.280.0090.00816.17
7.3.270.0130.00617.40
7.3.260.0060.01216.32
7.3.250.0110.00816.39
7.3.240.0050.01316.32
7.3.230.0130.01016.42
7.3.210.0060.01016.09
7.3.200.0130.00916.54
7.3.190.0060.01416.38
7.3.180.0080.00816.24
7.3.170.0130.00916.49
7.3.160.0140.00716.36
7.3.130.0060.00614.74
7.3.120.0040.01514.94
7.3.110.0040.01115.02
7.3.100.0030.01314.39
7.3.90.0090.00914.50
7.3.80.0160.00014.65
7.3.70.0060.00914.72
7.3.60.0090.00614.70
7.3.50.0070.00314.91
7.3.40.0060.00914.61
7.3.30.0040.00814.55
7.3.20.0060.00916.64
7.3.10.0000.01116.57
7.3.00.0100.00616.67
7.2.330.0370.01516.34
7.2.320.0110.00616.77
7.2.310.0060.01116.70
7.2.300.0070.01016.69
7.2.290.0100.00716.64
7.2.260.0100.01015.33
7.2.250.0080.01015.29
7.2.240.0080.00615.00
7.2.230.0060.00915.17
7.2.220.0070.00714.95
7.2.210.0140.00015.19
7.2.200.0040.01115.24
7.2.190.0030.01415.16
7.2.180.0030.00714.90
7.2.170.0090.00615.14
7.2.160.0040.01114.80
7.2.150.0080.00816.99
7.2.140.0100.00316.98
7.2.130.0070.00916.92
7.2.120.0060.00816.90
7.2.110.0040.00816.87
7.2.100.0030.00716.89
7.2.90.0040.01016.80
7.2.80.0070.00716.86
7.2.70.0060.01016.77
7.2.60.0080.00617.02
7.2.50.0070.00816.86
7.2.40.0050.00517.01
7.2.30.0050.00917.00
7.2.20.0100.00516.99
7.2.10.0050.01016.76
7.2.00.0050.01017.68
7.1.330.0080.00815.75
7.1.320.0040.01015.94
7.1.310.0070.00615.87
7.1.300.0120.00015.39
7.1.290.0100.00315.66
7.1.280.0040.00415.90
7.1.270.0070.00715.81
7.1.260.0060.00615.82
7.1.250.0080.00615.76
7.1.240.0070.00915.72
7.1.230.0050.00915.65
7.1.220.0050.00815.70
7.1.210.0050.01215.76
7.1.200.0020.01115.67
7.1.190.0090.00715.68
7.1.180.0060.00615.89
7.1.170.0050.00715.69
7.1.160.0050.00815.66
7.1.150.0040.01015.66
7.1.140.0040.01115.72
7.1.130.0030.01115.73
7.1.120.0060.00815.78
7.1.110.0060.00615.75
7.1.100.0040.01016.59
7.1.90.0040.00915.77
7.1.80.0060.00515.59
7.1.70.0080.00416.07
7.1.60.0080.00417.00
7.1.50.0080.00616.19
7.1.40.0040.01115.75
7.1.30.0090.00515.61
7.1.20.0040.00915.73
7.1.10.0030.00815.82
7.1.00.0040.02917.96
7.0.330.0100.00315.31
7.0.320.0030.00715.29
7.0.310.0030.01015.36
7.0.300.0080.00715.33
7.0.290.0080.00815.29
7.0.280.0070.00715.45
7.0.270.0060.00715.39
7.0.260.0020.01115.16
7.0.250.0040.00615.21
7.0.240.0050.00515.27
7.0.230.0020.01115.38
7.0.220.0070.00515.44
7.0.210.0060.00615.36
7.0.200.0020.00815.94
7.0.190.0050.00515.28
7.0.180.0070.00515.47
7.0.170.0070.00315.38
7.0.160.0080.00315.33
7.0.150.0070.00515.40
7.0.140.0070.00715.25
7.0.130.0030.01115.40
7.0.120.0050.00715.47
7.0.110.0060.00515.33
7.0.100.0040.01015.33
7.0.90.0080.00415.48
7.0.80.0080.00815.32
7.0.70.0040.00815.29
7.0.60.0020.03216.88
7.0.50.0080.02616.23
7.0.40.0030.02115.65
7.0.30.0090.03115.70
7.0.20.0100.02015.80
7.0.10.0110.02515.75
7.0.00.0060.01915.70
5.6.400.0070.01014.73
5.6.390.0070.01014.40
5.6.380.0100.00414.23
5.6.370.0060.00814.50
5.6.360.0050.00714.38
5.6.350.0030.00914.21
5.6.340.0030.00814.42
5.6.330.0000.01314.53
5.6.320.0020.00814.56
5.6.310.0070.00514.15
5.6.300.0080.00614.22
5.6.290.0070.00514.47
5.6.280.0060.02716.78
5.6.270.0060.00714.47
5.6.260.0070.00414.45
5.6.250.0030.01014.41
5.6.240.0060.00514.29
5.6.230.0060.00614.35
5.6.220.0070.00714.36
5.6.210.0100.02316.42
5.6.200.0060.03415.67
5.6.190.0040.03316.40
5.6.180.0190.02216.42
5.6.170.0190.02216.27
5.6.160.0140.02816.32
5.6.150.0090.02915.69
5.6.140.0070.02515.57
5.6.130.0030.01915.69
5.6.120.0060.03516.51
5.6.110.0080.02816.50
5.6.100.0040.03316.55
5.6.90.0060.03316.62
5.6.80.0090.03216.31
5.6.70.0090.00314.21
5.6.60.0080.00814.13
5.6.50.0060.00614.18
5.6.40.0020.00914.24
5.6.30.0090.00614.28
5.6.20.0020.01114.09
5.6.10.0090.00314.38
5.6.00.0040.00714.23
5.5.380.0020.00912.82
5.5.370.0040.00512.79
5.5.360.0030.01012.65
5.5.350.0120.02615.30
5.5.340.0060.02914.50
5.5.330.0050.03115.36
5.5.320.0060.02015.42
5.5.310.0170.02715.40
5.5.300.0070.02614.54
5.5.290.0060.02314.53
5.5.280.0060.03415.47
5.5.270.0070.01715.47
5.5.260.0060.02015.43
5.5.250.0020.03815.42
5.5.240.0150.02215.31
5.5.230.0070.00712.68
5.5.220.0070.00312.63
5.5.210.0030.00612.74
5.5.200.0070.00612.74
5.5.190.0090.00412.69
5.5.180.0050.00912.67
5.5.170.0040.00712.52
5.5.160.0070.00212.81
5.5.150.0050.00512.61
5.5.140.0040.01112.66
5.5.130.0060.00912.63
5.5.120.0050.00612.73
5.5.110.0060.00912.76
5.5.100.0040.00912.84
5.5.90.0100.00212.65
5.5.80.0080.00612.60
5.5.70.0050.00512.62
5.5.60.0020.01112.79
5.5.50.0030.01012.79
5.5.40.0070.00512.63
5.5.30.0030.00912.81
5.5.20.0000.01212.80
5.5.10.0070.00712.63
5.5.00.0060.00512.79

preferences:
77.45 ms | 401 KiB | 5 Q