3v4l.org

run code in 300+ PHP versions simultaneously
<?php class super { public function a() { $this->b(); } private function b() { print "super\n"; } } class sub extends super { } $obj = new class() extends super { private function b() { print "sub\n"; } }; $obj->a();

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.00416.50
8.3.50.0130.00821.03
8.3.40.0100.01018.66
8.3.30.0090.00618.42
8.3.20.0070.00020.27
8.3.10.0040.00421.81
8.3.00.0080.00023.45
8.2.180.0090.00616.50
8.2.170.0150.00622.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0080.00019.70
8.2.120.0000.00726.35
8.2.110.0030.00622.07
8.2.100.0000.01217.93
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0080.00022.33
8.2.30.0000.00719.49
8.2.20.0000.00717.73
8.2.10.0000.00718.11
8.2.00.0000.00818.04
8.1.280.0100.01025.92
8.1.270.0190.00023.97
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0030.00618.97
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.29
8.1.160.0040.00420.71
8.1.150.0000.00718.92
8.1.140.0050.00319.51
8.1.130.0080.00017.57
8.1.120.0040.00417.50
8.1.110.0030.00317.48
8.1.100.0040.00417.46
8.1.90.0040.00417.34
8.1.80.0050.00217.34
8.1.70.0040.00417.45
8.1.60.0040.00417.59
8.1.50.0060.00617.47
8.1.40.0030.00517.49
8.1.30.0040.00417.47
8.1.20.0080.00017.64
8.1.10.0000.00817.54
8.1.00.0030.00617.50
8.0.300.0070.00318.77
8.0.290.0080.00016.75
8.0.280.0000.00718.43
8.0.270.0050.00317.16
8.0.260.0000.00617.24
8.0.250.0060.00316.95
8.0.240.0040.00416.95
8.0.230.0030.00316.88
8.0.220.0030.00316.89
8.0.210.0040.00416.89
8.0.200.0030.00516.86
8.0.190.0030.00516.88
8.0.180.0030.00616.79
8.0.170.0080.00016.97
8.0.160.0040.00416.93
8.0.150.0070.00016.73
8.0.140.0040.00416.81
8.0.130.0030.00313.30
8.0.120.0040.00416.76
8.0.110.0030.00516.93
8.0.100.0000.00816.88
8.0.90.0070.00016.95
8.0.80.0070.00816.88
8.0.70.0040.00416.86
8.0.60.0000.00716.88
8.0.50.0000.00716.68
8.0.30.0070.01116.99
8.0.20.0110.00817.40
8.0.10.0000.00716.81
8.0.00.0070.01116.73
7.4.330.0050.00016.89
7.4.320.0000.00616.57
7.4.300.0000.00816.50
7.4.290.0070.00016.55
7.4.280.0030.00616.50
7.4.270.0050.00316.59
7.4.260.0000.00616.55
7.4.250.0000.00816.55
7.4.240.0020.00616.55
7.4.230.0030.00316.47
7.4.220.0080.01216.64
7.4.210.0060.00916.66
7.4.200.0000.00716.60
7.4.160.0080.00616.34
7.4.150.0090.01217.40
7.4.140.0110.00817.86
7.4.130.0130.00616.46
7.4.120.0100.00716.42
7.4.110.0100.00616.47
7.4.100.0120.00916.41
7.4.90.0180.00616.46
7.4.80.0120.00919.39
7.4.70.0090.00716.62
7.4.60.0100.00616.54
7.4.50.0090.00616.36
7.4.40.0110.00716.31
7.4.30.0090.00916.54
7.4.00.0090.00914.60
7.3.330.0030.00313.15
7.3.320.0050.00013.22
7.3.310.0070.00016.21
7.3.300.0000.00716.30
7.3.290.0070.00916.31
7.3.280.0070.01416.29
7.3.270.0070.01017.40
7.3.260.0130.00416.20
7.3.250.0150.00516.34
7.3.240.0050.01116.22
7.3.230.0050.01416.54
7.3.210.0120.00916.33
7.3.200.0100.01319.39
7.3.190.0090.00616.32
7.3.180.0160.00316.20
7.3.170.0070.01016.52
7.3.160.0160.00016.52
7.2.330.0000.01816.73
7.2.320.0070.01016.40
7.2.310.0110.00616.43
7.2.300.0090.00916.70
7.2.290.0130.00316.45
7.2.60.0070.01016.93
7.2.00.0090.00919.59
7.1.200.0030.01515.69
7.1.100.0100.01018.05
7.1.70.0000.01617.22
7.1.60.0100.01619.30
7.1.50.0170.00334.64
7.1.00.0030.07722.31
7.0.200.0050.00316.41
7.0.60.0170.04721.85
7.0.50.0070.07717.88
7.0.40.0130.07020.30
7.0.30.0270.06720.24
7.0.20.0230.05020.23
7.0.10.0070.09720.07
7.0.00.0070.04320.25
5.6.280.0130.03320.87
5.6.210.0000.04320.52
5.6.200.0070.04318.29
5.6.190.0030.06020.67
5.6.180.0500.07320.55
5.6.170.0200.04320.44
5.6.160.0130.08020.56
5.6.150.0030.05718.18
5.6.140.0100.07718.18
5.6.130.0070.06318.17
5.6.120.0100.05321.02
5.6.110.0070.06321.12
5.6.100.0100.05320.96
5.6.90.0070.08021.09
5.6.80.0070.07020.51
5.5.350.0100.04320.39
5.5.340.0070.03717.98
5.5.330.0100.04020.31
5.5.320.0200.04720.36
5.5.310.0270.05020.24
5.5.300.0030.05717.96
5.5.290.0030.05717.98
5.5.280.0100.08020.97
5.5.270.0030.08720.88
5.5.260.0100.08720.84
5.5.250.0130.08020.69
5.5.240.0270.06320.29

preferences:
59.91 ms | 401 KiB | 5 Q