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) { super::__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.70.0120.00416.63
8.3.60.0090.00618.23
8.3.50.0160.00821.97
8.3.40.0090.00619.02
8.3.30.0080.00818.84
8.3.20.0040.00420.23
8.3.10.0040.00423.53
8.3.00.0000.00819.38
8.2.190.0170.00318.41
8.2.180.0140.00718.29
8.2.170.0120.00322.96
8.2.160.0110.00320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00820.52
8.2.120.0070.00026.35
8.2.110.0090.00020.35
8.2.100.0030.00917.93
8.2.90.0000.00819.28
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00421.00
8.2.30.0000.00720.73
8.2.20.0070.00017.66
8.2.10.0000.00718.02
8.2.00.0000.00817.98
8.1.280.0090.00625.92
8.1.270.0130.00723.86
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0060.00322.24
8.1.230.0060.00617.54
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0040.00417.54
8.1.180.0040.00418.10
8.1.170.0030.00518.45
8.1.160.0000.00721.98
8.1.150.0050.00218.68
8.1.140.0030.00719.45
8.1.130.0070.00017.58
8.1.120.0030.00317.25
8.1.110.0000.00717.23
8.1.100.0030.00517.37
8.1.90.0000.00717.30
8.1.80.0070.00017.21
8.1.70.0030.00317.37
8.1.60.0030.00617.53
8.1.50.0040.00417.47
8.1.40.0040.00417.35
8.1.30.0030.00517.57
8.1.20.0040.00417.48
8.1.10.0040.00417.44
8.1.00.0000.00817.30
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.37
8.0.270.0030.00317.10
8.0.260.0030.00317.20
8.0.250.0000.00816.93
8.0.240.0000.00816.95
8.0.230.0000.00716.95
8.0.220.0030.00316.89
8.0.210.0080.00016.87
8.0.200.0030.00316.96
8.0.190.0040.00416.82
8.0.180.0000.00816.89
8.0.170.0080.00016.92
8.0.160.0070.00016.79
8.0.150.0050.00316.84
8.0.140.0070.00016.91
8.0.130.0060.00013.40
8.0.120.0070.00016.86
8.0.110.0040.00416.87
8.0.100.0030.00516.75
8.0.90.0050.00216.83
8.0.80.0040.01516.93
8.0.70.0040.00416.89
8.0.60.0000.00716.77
8.0.50.0080.00016.95
8.0.30.0050.01417.14
8.0.20.0110.01017.40
8.0.10.0040.00416.99
8.0.00.0100.00816.66
7.4.330.0050.00016.78
7.4.320.0000.00716.48
7.4.300.0070.00016.52
7.4.290.0040.00416.53
7.4.280.0030.00616.52
7.4.270.0040.00416.44
7.4.260.0070.00016.38
7.4.250.0040.00416.43
7.4.240.0050.00216.45
7.4.230.0000.00816.57
7.4.220.0170.00216.55
7.4.210.0070.00716.34
7.4.200.0040.00416.61
7.4.160.0060.00916.41
7.4.150.0150.00317.40
7.4.140.0120.00717.86
7.4.130.0120.00816.40
7.4.120.0090.00916.53
7.4.110.0130.00316.39
7.4.100.0170.00416.53
7.4.90.0150.00616.32
7.4.80.0060.01219.39
7.4.70.0090.00916.53
7.4.60.0130.00316.59
7.4.50.0040.01116.56
7.4.40.0070.01016.44
7.4.30.0100.01416.51
7.4.00.0030.01214.91
7.3.330.0000.00813.18
7.3.320.0050.00013.32
7.3.310.0070.00016.47
7.3.300.0040.00416.31
7.3.290.0070.00816.35
7.3.280.0050.01216.38
7.3.270.0060.01217.40
7.3.260.0060.01216.63
7.3.250.0070.01316.48
7.3.240.0080.00816.45
7.3.230.0110.00716.55
7.3.210.0000.01616.64
7.3.200.0070.01616.37
7.3.190.0110.00716.38
7.3.180.0170.00516.43
7.3.170.0130.01016.34
7.3.160.0060.01016.45
7.3.10.0110.00316.61
7.3.00.0040.00816.61
7.2.330.0120.00816.43
7.2.320.0030.01416.75
7.2.310.0090.00916.34
7.2.300.0130.00316.27
7.2.290.0070.01116.38
7.2.130.0130.00516.63
7.2.120.0040.00716.83
7.2.110.0030.01016.80
7.2.100.0000.01116.75
7.2.90.0070.01116.81
7.2.80.0080.00316.80
7.2.70.0120.00316.82
7.2.60.0080.00616.65
7.2.50.0040.00716.62
7.2.40.0000.01116.90
7.2.30.0100.00316.63
7.2.20.0030.00816.55
7.2.10.0090.00616.72
7.2.00.0050.01018.11
7.1.250.0130.00015.63
7.1.200.0090.00315.66
7.1.100.0040.00717.71
7.1.70.0000.01016.83
7.1.60.0060.01019.36
7.1.50.0260.00734.66
7.1.00.0070.07322.32
7.0.200.0030.00316.76
7.0.60.0070.07019.95
7.0.50.0070.07317.72
7.0.40.0170.07320.10
7.0.30.0170.06020.30
7.0.20.0270.08320.09
7.0.10.0070.06720.30
7.0.00.0070.04020.09
5.6.280.0070.06720.82
5.6.210.0100.08320.71
5.6.200.0100.08018.18
5.6.190.0100.08320.51
5.6.180.0470.05320.77
5.6.170.0170.05020.47
5.6.160.0130.05320.55
5.6.150.0030.04318.15
5.6.140.0200.06718.14
5.6.130.0070.04018.25
5.6.120.0030.05321.03
5.6.110.0130.06721.14
5.6.100.0130.07720.94
5.6.90.0000.04721.08
5.6.80.0130.07020.38
5.5.350.0100.08320.53
5.5.340.0030.06718.05
5.5.330.0070.08320.43
5.5.320.0100.08020.34
5.5.310.0300.04320.30
5.5.300.0070.08718.04
5.5.290.0070.08317.98
5.5.280.0070.05320.85
5.5.270.0070.05720.74
5.5.260.0130.08020.80
5.5.250.0000.06020.78
5.5.240.0270.07020.37

preferences:
22.73 ms | 401 KiB | 5 Q