3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function testPrivate (bool $str) { echo "Class A\n"; } public function test() { $this->testPrivate(); } } class B extends A { private function testPrivate (string $value) { echo "Class B\n"; } } $b = new B(); $b->test();

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.0150.00316.63
8.3.50.0060.01222.01
8.3.40.0060.01218.79
8.3.30.0040.01118.83
8.3.20.0070.00020.33
8.3.10.0080.00021.90
8.3.00.0040.00419.97
8.2.180.0120.00318.54
8.2.170.0150.00422.96
8.2.160.0080.00620.53
8.2.150.0070.00724.18
8.2.140.0030.00524.66
8.2.130.0040.00419.27
8.2.120.0080.00026.35
8.2.110.0100.00021.06
8.2.100.0060.00617.72
8.2.90.0070.00020.63
8.2.80.0040.00417.97
8.2.70.0040.00717.80
8.2.60.0150.00017.66
8.2.50.0040.00418.10
8.2.40.0040.00419.17
8.2.30.0020.00519.20
8.2.20.0000.00817.56
8.2.10.0070.00017.82
8.2.00.0000.00718.00
8.1.280.0040.01425.92
8.1.270.0080.00020.35
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.01520.59
8.1.230.0070.00420.88
8.1.220.0040.00417.74
8.1.210.0000.00818.83
8.1.200.0080.00017.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0050.00318.52
8.1.160.0000.00818.84
8.1.150.0070.00018.82
8.1.140.0000.00819.52
8.1.130.0070.00017.69
8.1.120.0040.00417.36
8.1.110.0030.00317.38
8.1.100.0000.00817.42
8.1.90.0020.00517.35
8.1.80.0000.00817.41
8.1.70.0040.00417.32
8.1.60.0000.00817.59
8.1.50.0000.00817.48
8.1.40.0040.00417.41
8.1.30.0060.00317.56
8.1.20.0030.00617.58
8.1.10.0040.00417.58
8.1.00.0000.00717.52
8.0.300.0000.00819.90
8.0.290.0000.00816.75
8.0.280.0070.00018.33
8.0.270.0070.00017.08
8.0.260.0000.00617.26
8.0.250.0040.00416.84
8.0.240.0000.00716.89
8.0.230.0070.00016.94
8.0.220.0030.00316.88
8.0.210.0000.00716.91
8.0.200.0000.00817.04
8.0.190.0040.00816.98
8.0.180.0000.00716.91
8.0.170.0020.00516.98
8.0.160.0080.00016.79
8.0.150.0000.00716.84
8.0.140.0000.00716.86
8.0.130.0030.00313.36
8.0.120.0030.00516.87
8.0.110.0000.00716.89
8.0.100.0000.00716.93
8.0.90.0050.00316.89
8.0.80.0120.00316.83
8.0.70.0080.00017.01
8.0.60.0030.00516.71
8.0.50.0070.00016.89
8.0.30.0140.00316.89
8.0.20.0070.01217.40
8.0.10.0000.00717.09
8.0.00.0110.00816.76
7.4.330.0000.00516.78
7.4.320.0030.00316.54
7.4.300.0040.00416.58
7.4.290.0000.00716.49
7.4.280.0040.00416.59
7.4.270.0000.00716.58
7.4.260.0050.00216.54
7.4.250.0000.00716.48
7.4.240.0050.00216.44
7.4.230.0040.00416.68
7.4.220.0070.01016.45
7.4.210.0030.01416.62
7.4.200.0030.00316.58
7.4.160.0040.01116.35
7.4.150.0140.00317.40
7.4.140.0050.01517.86
7.4.130.0140.01016.47
7.4.120.0090.00916.53
7.4.110.0140.00316.40
7.4.100.0030.01316.55
7.4.90.0030.01416.51
7.4.80.0030.01319.39
7.4.70.0080.00816.40
7.4.60.0040.01216.47
7.4.50.0140.00316.41
7.4.40.0150.00616.46
7.4.30.0070.01416.33
7.4.00.0060.00614.81
7.3.330.0000.00513.32
7.3.320.0030.00313.15
7.3.310.0070.00016.22
7.3.300.0070.00016.22
7.3.290.0090.00616.34
7.3.280.0090.01216.39
7.3.270.0160.00417.40
7.3.260.0110.01116.66
7.3.240.0050.01316.50
7.3.230.0100.00716.39
7.3.210.0080.00816.45
7.3.200.0060.01216.46
7.3.190.0070.01116.57
7.3.180.0100.00716.39
7.3.170.0140.00616.57
7.3.160.0050.01116.32
7.2.330.0070.01016.39
7.2.320.0110.00716.41
7.2.310.0130.00616.34
7.2.300.0030.01316.63
7.2.290.0180.00016.59
7.2.60.0000.01416.94
7.2.00.0000.01219.54
7.1.200.0000.00815.27
7.1.100.0040.01118.00
7.1.70.0000.01016.75
7.1.60.0090.01519.44
7.1.50.0100.01316.86
7.1.00.0030.09722.48
7.0.200.0000.00816.54
7.0.60.0030.04320.02
7.0.50.0030.08717.89
7.0.40.0130.04020.38
7.0.30.0400.07020.14
7.0.20.0330.07320.19
7.0.10.0070.07320.08
7.0.00.0000.04720.07
5.6.280.0030.04021.10
5.6.210.0130.07320.66
5.6.200.0030.08718.26
5.6.190.0100.05320.48
5.6.180.0170.04320.64
5.6.170.0070.05020.50
5.6.160.0030.04320.54
5.6.150.0000.04018.19
5.6.140.0070.03718.15
5.6.130.0030.07018.10
5.6.120.0170.07721.04
5.6.110.0100.08721.01
5.6.100.0130.07721.11
5.6.90.0100.08020.97
5.6.80.0100.06720.54
5.5.350.0200.07720.32
5.5.340.0070.08018.08
5.5.330.0100.04320.27
5.5.320.0500.06020.24
5.5.310.0270.07720.51
5.5.300.0030.06018.01
5.5.290.0100.06317.93
5.5.280.0130.06320.88
5.5.270.0130.08020.76
5.5.260.0070.07020.98
5.5.250.0070.08720.66
5.5.240.3670.04020.27

preferences:
60.6 ms | 401 KiB | 5 Q