3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $s; public function __construct($s) { $this->s = $s; } protected function getS() { return $this->s; } } class C1 extends C { public function __construct($s) { parent::__construct($s); } function do() { echo $this->getS(); echo $this->s; } } $c1 = new C1(); $c1->do();

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.0040.01116.38
8.3.50.0080.00818.11
8.3.40.0100.00718.84
8.3.30.0150.00018.78
8.3.20.0040.00420.24
8.3.10.0070.00023.48
8.3.00.0050.00319.51
8.2.180.0140.00717.93
8.2.170.0060.00922.96
8.2.160.0100.01020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.39
8.2.120.0070.00026.35
8.2.110.0040.00420.70
8.2.100.0040.00817.80
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0080.00017.80
8.2.50.0030.00618.07
8.2.40.0040.00421.15
8.2.30.0040.00420.62
8.2.20.0040.00417.67
8.2.10.0040.00417.87
8.2.00.0080.00017.99
8.1.280.0070.00725.92
8.1.270.0110.01123.96
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00622.06
8.1.230.0040.00817.51
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.63
8.1.180.0030.00618.10
8.1.170.0000.00918.57
8.1.160.0070.00021.95
8.1.150.0040.00418.64
8.1.140.0090.00019.45
8.1.130.0070.00017.53
8.1.120.0000.00717.29
8.1.110.0000.00717.38
8.1.100.0040.00417.34
8.1.90.0000.00717.24
8.1.80.0080.00017.22
8.1.70.0020.00517.17
8.1.60.0070.00417.39
8.1.50.0040.00417.48
8.1.40.0000.00817.41
8.1.30.0040.00417.48
8.1.20.0040.00417.62
8.1.10.0000.00717.40
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0040.00417.20
8.0.260.0030.00317.22
8.0.250.0030.00316.84
8.0.240.0050.00316.82
8.0.230.0030.00316.94
8.0.220.0070.00016.92
8.0.210.0000.00916.79
8.0.200.0030.00316.85
8.0.190.0070.00017.00
8.0.180.0040.00416.93
8.0.170.0060.00316.91
8.0.160.0040.00416.91
8.0.150.0000.00816.71
8.0.140.0000.00816.88
8.0.130.0050.00013.25
8.0.120.0040.00416.84
8.0.110.0040.00416.83
8.0.100.0030.00516.95
8.0.90.0040.00416.88
8.0.80.0120.00316.82
8.0.70.0080.00016.92
8.0.60.0000.00716.75
8.0.50.0040.00416.79
8.0.30.0100.00716.96
8.0.20.0120.00717.40
8.0.10.0040.00416.75
8.0.00.0060.01116.54
7.4.330.0020.00216.85
7.4.320.0040.00416.39
7.4.300.0000.00616.54
7.4.290.0040.00416.54
7.4.280.0070.00316.52
7.4.270.0000.00816.43
7.4.260.0040.00416.56
7.4.250.0070.00016.41
7.4.240.0060.00216.42
7.4.230.0000.00716.65
7.4.220.0150.01216.59
7.4.210.0080.00616.53
7.4.200.0070.00016.52
7.4.160.0110.00816.29
7.4.150.0130.01017.40
7.4.140.0090.01117.86
7.4.130.0090.01116.67
7.4.120.0110.00616.54
7.4.110.0060.00916.48
7.4.100.0090.01316.46
7.4.90.0130.00716.30
7.4.80.0110.00619.39
7.4.70.0070.01016.34
7.4.60.0060.01116.41
7.4.50.0000.01216.65
7.4.40.0130.00416.45
7.4.30.0060.01816.48
7.4.10.0060.01516.20
7.4.00.0080.00915.81
7.3.330.0060.00013.38
7.3.320.0050.00013.35
7.3.310.0000.00716.40
7.3.300.0030.00316.37
7.3.290.0040.01116.39
7.3.280.0050.01016.37
7.3.270.0090.00917.40
7.3.260.0100.00716.54
7.3.250.0110.01116.43
7.3.240.0120.00516.51
7.3.230.0130.00316.55
7.3.210.0130.00316.58
7.3.200.0110.01216.24
7.3.190.0100.01016.20
7.3.180.0030.01316.36
7.3.170.0120.00916.30
7.3.160.0030.01316.44
7.3.130.0060.00916.30
7.3.120.0060.01216.26
7.3.110.0060.00916.45
7.3.100.0070.01016.16
7.3.90.0060.01016.43
7.3.80.0000.01416.27
7.3.70.0040.00816.19
7.3.60.0030.00716.32
7.3.50.0000.01116.26
7.3.40.0060.01016.34
7.3.30.0040.01116.36
7.3.20.0140.00318.13
7.3.10.0060.01017.08
7.3.00.0060.01116.93
7.2.330.0150.00316.58
7.2.320.0140.00816.62
7.2.310.0100.00716.36
7.2.300.0070.01016.41
7.2.290.0170.00016.44
7.2.260.0070.01016.54
7.2.250.0070.01416.54
7.2.240.0030.01016.39
7.2.230.0070.00716.52
7.2.220.0040.01116.34
7.2.210.0120.00016.41
7.2.200.0030.01016.37
7.2.190.0100.00616.44
7.2.180.0040.00716.34
7.2.170.0110.00416.28
7.2.160.0090.00616.36
7.2.150.0070.01018.20
7.2.140.0030.00918.19
7.2.130.0060.01117.27
7.2.120.0060.01017.29
7.2.110.0070.00717.34
7.2.100.0080.00717.23
7.2.90.0080.00717.25
7.2.80.0060.00817.29
7.2.70.0040.00917.26
7.2.60.0050.00917.03
7.2.50.0050.00917.22
7.2.40.0050.00917.33
7.2.30.0070.00717.28
7.2.20.0060.00717.28
7.2.10.0100.00417.21
7.2.00.0030.00917.69
7.1.330.0030.01017.01
7.1.320.0070.00717.28
7.1.310.0030.00817.06
7.1.300.0060.00617.23
7.1.290.0080.00417.19
7.1.280.0080.00817.16
7.1.270.0090.00617.29
7.1.260.0070.00717.14
7.1.250.0060.00716.16
7.1.240.0030.00916.32
7.1.230.0020.01316.37
7.1.220.0070.00716.38
7.1.210.0110.00216.32
7.1.200.0060.00616.08
7.1.190.0050.00816.24
7.1.180.0070.00816.36
7.1.170.0110.00316.50
7.1.160.0060.00516.27
7.1.150.0030.00616.43
7.1.140.0050.00816.41
7.1.130.0110.00516.37
7.1.120.0070.00716.36
7.1.110.0100.00316.40
7.1.100.0070.00616.86
7.1.90.0070.00816.41
7.1.80.0050.00716.33
7.1.70.0040.00816.35
7.1.60.0060.00717.36
7.1.50.0090.00622.41
7.1.40.0090.00316.23
7.1.30.0050.00916.36
7.1.20.0000.00916.30
7.1.10.0050.00616.36
7.1.00.0070.02918.47
7.0.330.0020.01216.18
7.0.320.0070.00616.25
7.0.310.0040.00916.21
7.0.300.0050.00916.18
7.0.290.0000.01016.14
7.0.280.0030.00816.12
7.0.270.0060.00816.15
7.0.260.0090.00116.20
7.0.250.0050.00716.25
7.0.240.0020.01216.20
7.0.230.0050.00816.22
7.0.220.0050.00516.21
7.0.210.0050.00716.12
7.0.200.0040.00616.43
7.0.190.0070.00616.19
7.0.180.0090.00716.14
7.0.170.0100.00516.12
7.0.160.0060.00816.21
7.0.150.0050.00816.21
7.0.140.0060.00616.22
7.0.130.0090.00516.28
7.0.120.0060.00616.18
7.0.110.0060.00716.25
7.0.100.0010.01216.17
7.0.90.0020.01016.20
7.0.80.0030.00616.21
7.0.70.0060.00516.20
7.0.60.0050.02317.44
7.0.50.0050.02816.82
7.0.40.0030.02016.16
7.0.30.0090.02916.17
7.0.20.0110.03216.22
7.0.10.0060.02516.27
7.0.00.0080.01616.22
5.6.400.0130.00316.04
5.6.390.0060.00615.36
5.6.380.0050.00714.87
5.6.370.0030.01014.84
5.6.360.0050.00614.90
5.6.350.0000.01014.96
5.6.340.0030.01014.86
5.6.330.0040.00414.94
5.6.320.0040.00714.90
5.6.310.0040.00915.12
5.6.300.0010.01114.82
5.6.290.0040.00914.87
5.6.280.0050.02117.02
5.6.270.0080.00214.98
5.6.260.0050.01215.01
5.6.250.0040.01114.76
5.6.240.0030.01014.88
5.6.230.0090.00714.79
5.6.220.0050.00814.89
5.6.210.0070.02616.63
5.6.200.0090.02815.87
5.6.190.0090.03616.62
5.6.180.0170.02516.66
5.6.170.0110.02316.66
5.6.160.0070.02916.59
5.6.150.0080.02915.89
5.6.140.0040.03516.08
5.6.130.0060.01815.86
5.6.120.0100.02716.99
5.6.110.0100.03216.91
5.6.100.0100.03117.03
5.6.90.0070.02516.96
5.6.80.0050.03016.63
5.6.70.0050.00914.80
5.6.60.0070.00714.72
5.6.50.0110.00414.65
5.6.40.0100.00614.77
5.6.30.0090.00814.84
5.6.20.0070.00914.87
5.6.10.0020.01114.74
5.6.00.0030.00914.86
5.5.380.0050.00713.41
5.5.370.0050.00913.26
5.5.360.0100.00613.19
5.5.350.0110.02915.68
5.5.340.0100.01714.87
5.5.330.0060.03515.65
5.5.320.0090.03215.60
5.5.310.0100.03415.61
5.5.300.0060.03014.78
5.5.290.0030.03614.83
5.5.280.0110.03015.88
5.5.270.0060.01715.83
5.5.260.0050.02015.65
5.5.250.0060.03115.49
5.5.240.0190.02315.49
5.5.230.0070.00313.29
5.5.220.0010.00613.25
5.5.210.0070.00713.20
5.5.200.0070.00513.27
5.5.190.0100.00613.15
5.5.180.0090.01013.21
5.5.170.0040.00613.02
5.5.160.0030.01013.09
5.5.150.0020.00913.29
5.5.140.0090.00413.11
5.5.130.0080.00513.30
5.5.120.0040.01013.17
5.5.110.0060.00713.20
5.5.100.0060.00313.10
5.5.90.0070.00912.90
5.5.80.0080.00712.98
5.5.70.0080.00713.05
5.5.60.0040.00712.96
5.5.50.0110.00313.12
5.5.40.0050.01013.24
5.5.30.0030.00512.97
5.5.20.0070.00813.16
5.5.10.0080.00313.00
5.5.00.0060.00513.02

preferences:
64.78 ms | 400 KiB | 5 Q