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 __construct($s1) { parent::__construct($s1); } function doStuff() { echo $this->getS(); echo $this->s; } } $c1 = new C1(); $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.0100.00716.50
8.3.50.0100.00618.30
8.3.40.0090.00618.53
8.3.30.0090.00618.79
8.3.20.0040.00420.16
8.3.10.0040.00423.64
8.3.00.0090.00019.38
8.2.180.0110.01118.54
8.2.170.0140.00022.96
8.2.160.0120.00320.33
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.57
8.2.120.0080.00026.35
8.2.110.0050.00519.39
8.2.100.0080.00417.93
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0040.00417.34
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0040.00421.15
8.2.30.0000.00820.67
8.2.20.0040.00417.63
8.2.10.0070.00018.05
8.2.00.0040.00417.99
8.1.280.0090.01225.92
8.1.270.0180.00023.75
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0130.00322.68
8.1.230.0060.00617.66
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.71
8.1.180.0000.00818.10
8.1.170.0040.00418.57
8.1.160.0000.00721.95
8.1.150.0040.00418.82
8.1.140.0030.00619.46
8.1.130.0030.00317.58
8.1.120.0000.00817.32
8.1.110.0050.00317.31
8.1.100.0040.00417.30
8.1.90.0000.00717.32
8.1.80.0040.00417.37
8.1.70.0000.00817.17
8.1.60.0060.00617.57
8.1.50.0030.00517.33
8.1.40.0030.00517.45
8.1.30.0090.00017.53
8.1.20.0000.00717.59
8.1.10.0040.00417.41
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00518.43
8.0.270.0050.00317.10
8.0.260.0030.00317.30
8.0.250.0000.00716.93
8.0.240.0040.00416.83
8.0.230.0000.00716.92
8.0.220.0070.00016.79
8.0.210.0070.00016.87
8.0.200.0030.00616.97
8.0.190.0030.00516.90
8.0.180.0000.00716.75
8.0.170.0060.00316.92
8.0.160.0040.00416.81
8.0.150.0000.00716.90
8.0.140.0040.00416.73
8.0.130.0000.00513.36
8.0.120.0040.00416.80
8.0.110.0040.00416.97
8.0.100.0040.00416.94
8.0.90.0000.00816.80
8.0.80.0090.00616.84
8.0.70.0080.00016.87
8.0.60.0000.00716.83
8.0.50.0040.00416.68
8.0.30.0120.00617.14
8.0.20.0090.01017.40
8.0.10.0040.00416.82
8.0.00.0140.00916.78
7.4.330.0000.00516.84
7.4.320.0030.00316.25
7.4.300.0000.00616.45
7.4.290.0070.00016.34
7.4.280.0090.00016.54
7.4.270.0030.00316.55
7.4.260.0040.00416.41
7.4.250.0000.00716.41
7.4.240.0040.00416.53
7.4.230.0000.00716.35
7.4.220.0090.00916.65
7.4.210.0110.00416.46
7.4.200.0000.00716.44
7.4.160.0130.00716.31
7.4.150.0180.00017.40
7.4.140.0050.01317.86
7.4.130.0090.01016.38
7.4.120.0100.00716.52
7.4.110.0130.00316.52
7.4.100.0120.01216.71
7.4.90.0120.00616.43
7.4.80.0090.00919.39
7.4.70.0180.00316.45
7.4.60.0090.00616.35
7.4.50.0090.00316.02
7.4.40.0050.01116.70
7.4.30.0120.00916.47
7.4.00.0030.01414.78
7.3.330.0030.00513.38
7.3.320.0070.00013.32
7.3.310.0000.00716.27
7.3.300.0030.00316.24
7.3.290.0060.00916.33
7.3.280.0110.00516.40
7.3.270.0040.01517.40
7.3.260.0090.01216.51
7.3.250.0130.00416.46
7.3.240.0070.01016.29
7.3.230.0040.01416.39
7.3.210.0130.00316.57
7.3.200.0060.01316.25
7.3.190.0080.00816.31
7.3.180.0030.01316.59
7.3.170.0060.01016.61
7.3.160.0100.00916.39
7.3.120.0100.00714.73
7.3.110.0070.00714.73
7.3.100.0120.00314.67
7.3.90.0080.00414.57
7.3.80.0040.01214.75
7.3.70.0070.01014.91
7.3.60.0060.00914.89
7.3.50.0140.00314.88
7.3.40.0040.01214.79
7.3.30.0000.01514.85
7.3.20.0060.00916.68
7.3.10.0070.00416.51
7.3.00.0090.00316.38
7.2.330.0070.01516.63
7.2.320.0100.00716.61
7.2.310.0060.01216.41
7.2.300.0080.00816.21
7.2.290.0070.01016.65
7.2.250.0070.01114.91
7.2.240.0100.01014.79
7.2.230.0130.00714.80
7.2.220.0000.01914.67
7.2.210.0040.01514.91
7.2.200.0000.01314.88
7.2.190.0060.00315.00
7.2.180.0030.00614.93
7.2.170.0000.00914.71
7.2.130.0000.01216.76
7.2.120.0080.00816.88
7.2.110.0400.00316.61
7.2.100.0080.00916.71
7.2.90.0090.00516.56
7.2.80.0130.00516.63
7.2.70.0120.00616.68
7.2.60.0210.00516.86
7.2.50.0080.00816.68
7.2.40.0080.00716.76
7.2.30.0130.00516.80
7.2.20.0070.00916.52
7.2.10.0060.01116.84
7.2.00.0060.01017.46
7.1.330.0060.00915.48
7.1.320.0030.01115.34
7.1.310.0060.00315.63
7.1.300.0090.00615.65
7.1.290.0000.00915.64
7.1.280.0030.01315.75
7.1.270.0060.00915.68
7.1.260.0030.00815.50
7.1.250.0070.00315.58
7.1.230.0120.00015.47
7.1.220.0110.00515.37
7.1.210.0160.00315.29
7.1.200.0240.01015.59
7.1.190.0150.00015.47
7.1.180.0090.00915.67
7.1.170.0130.00315.35
7.1.160.0130.00315.52
7.1.150.0120.00315.68
7.1.140.0120.00215.53
7.1.130.0330.01315.75
7.1.120.0050.01015.68
7.1.110.0120.00415.69
7.1.100.0070.00716.56
7.1.90.0040.01215.36
7.1.80.0120.00615.68
7.1.70.0090.00416.29
7.1.60.0080.00917.54
7.1.50.0170.01225.41
7.1.40.0060.01315.94
7.1.30.0080.00815.78
7.1.20.0100.00715.91
7.1.10.0140.00015.51
7.1.00.0070.04118.88
7.0.310.0130.00015.37
7.0.300.0530.00015.44
7.0.290.0070.01015.25
7.0.280.0110.01115.09
7.0.270.0060.01215.37
7.0.260.0510.00315.34
7.0.250.0100.00615.46
7.0.240.0150.00315.25
7.0.230.0090.00415.23
7.0.220.0110.00815.38
7.0.210.0040.00915.48
7.0.200.0070.00616.10
7.0.190.0140.00315.55
7.0.180.0110.00415.24
7.0.170.0160.00015.30
7.0.160.0130.00415.41
7.0.150.0100.00715.37
7.0.140.0130.00015.49
7.0.130.0430.00715.41
7.0.120.0120.00815.33
7.0.110.0080.00515.27
7.0.100.0090.00515.18
7.0.90.0050.00915.21
7.0.80.0090.00915.36
7.0.70.0160.00315.41
7.0.60.0070.04517.68
7.0.50.0070.04516.86
7.0.40.0090.02516.72
7.0.30.0180.03516.77
7.0.20.0200.04116.87
7.0.10.0080.04316.61
7.0.00.0070.02216.87
5.6.380.0130.00814.38
5.6.370.0130.00614.54
5.6.360.0060.00914.25
5.6.350.0120.00814.27
5.6.340.0120.00414.53
5.6.330.0140.00313.92
5.6.320.0140.00414.26
5.6.310.0140.00414.22
5.6.300.0090.00414.22
5.6.290.0090.00914.68
5.6.280.0060.02117.72
5.6.270.0100.01014.35
5.6.260.0120.00314.48
5.6.250.0000.01414.42
5.6.240.0090.00514.48
5.6.230.0100.00514.20
5.6.220.0050.00814.25
5.6.210.0100.03017.61
5.6.200.0080.03816.29
5.6.190.0090.02617.46
5.6.180.0150.02917.43
5.6.170.0250.03017.41
5.6.160.0070.04417.39
5.6.150.0090.04116.43
5.6.140.0110.04116.29
5.6.130.0040.02516.28
5.6.120.0140.04117.61
5.6.110.0120.03617.75
5.6.100.0070.04417.64
5.6.90.0050.03617.70
5.6.80.0100.03517.24
5.6.70.0050.01014.47
5.6.60.0100.00514.16
5.6.50.0090.00513.92
5.6.40.0100.00314.31
5.6.30.0110.00413.99
5.6.20.0090.00614.20
5.6.10.0130.00414.34
5.6.00.0100.00714.29
5.5.380.0000.01012.79
5.5.370.0120.00312.79
5.5.360.0040.00412.79
5.5.350.0160.02816.60
5.5.340.0060.02315.44
5.5.330.0040.02416.46
5.5.320.0070.03516.49
5.5.310.0170.04116.65
5.5.300.0110.03915.41
5.5.290.0050.04515.43
5.5.280.0050.05016.73
5.5.270.0110.02016.81
5.5.260.0120.03516.78
5.5.250.0080.04516.74
5.5.240.0120.03716.51
5.5.230.0100.00312.79
5.5.220.0100.00312.79
5.5.210.0130.00012.79
5.5.200.0100.00512.79
5.5.190.0090.00612.79
5.5.180.0070.00312.79
5.5.170.0120.00414.09
5.5.160.0100.00312.79
5.5.150.0040.00912.79
5.5.140.0110.00412.79
5.5.130.0100.00712.79
5.5.120.0140.00012.79
5.5.110.0030.00612.79
5.5.100.0070.00712.79
5.5.90.0070.00712.79
5.5.80.0080.00412.79
5.5.70.0030.00712.79
5.5.60.0110.00012.79
5.5.50.0000.01412.79
5.5.40.0070.00512.79
5.5.30.0080.00812.79
5.5.20.0120.00312.79
5.5.10.0030.00912.79
5.5.00.0130.00212.79

preferences:
57.4 ms | 401 KiB | 5 Q