3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { private function test() { $this->testPrivate(); $this->privatefoo(); } private function testPrivate() { echo "Bar::testPrivate\n"; } } class Foo extends Bar { private function testPrivate() { echo "Foo::testPrivate\n"; } private function privatefoo(){ echo "Foo::privatefoo"; } public function testFooScope() { $this->testPrivate(); } } class Zot extends Foo { } $myZot = new Zot(); $myZot->test(); //What would this do other than Bar::testPrivate $myZot->testFooScope();

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.0060.00916.38
8.3.50.0070.00717.77
8.3.40.0110.00318.72
8.3.30.0080.01218.75
8.3.20.0070.00020.16
8.3.10.0070.00023.50
8.3.00.0030.00519.85
8.2.180.0120.00318.50
8.2.170.0150.00022.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.64
8.2.110.0060.00320.38
8.2.100.0090.00317.90
8.2.90.0000.00719.05
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0030.00517.91
8.2.50.0050.00318.07
8.2.40.0000.00821.12
8.2.30.0000.00920.68
8.2.20.0030.00617.75
8.2.10.0080.00018.02
8.2.00.0050.00218.00
8.1.280.0120.00325.92
8.1.270.0040.00420.65
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0090.00024.03
8.1.230.0060.00617.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.13
8.1.180.0030.00518.10
8.1.170.0000.00818.50
8.1.160.0040.00420.63
8.1.150.0000.00718.86
8.1.140.0000.00819.43
8.1.130.0030.00317.76
8.1.120.0040.00417.37
8.1.110.0040.00417.37
8.1.100.0030.00617.42
8.1.90.0070.00317.31
8.1.80.0000.00817.45
8.1.70.0000.00717.42
8.1.60.0100.00017.52
8.1.50.0040.00417.42
8.1.40.0050.00517.59
8.1.30.0000.00917.58
8.1.20.0040.00417.59
8.1.10.0000.00817.50
8.1.00.0030.00617.47
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00317.21
8.0.260.0000.00617.28
8.0.250.0030.00317.02
8.0.240.0000.00716.97
8.0.230.0030.00316.95
8.0.220.0030.00316.89
8.0.210.0000.00816.88
8.0.200.0030.00317.00
8.0.190.0070.00016.99
8.0.180.0000.00816.93
8.0.170.0060.00316.83
8.0.160.0000.00716.82
8.0.150.0000.00716.84
8.0.140.0060.00616.77
8.0.130.0000.00613.28
8.0.120.0050.00316.79
8.0.110.0000.00716.82
8.0.100.0040.00416.90
8.0.90.0000.00716.73
8.0.80.0110.00716.97
8.0.70.0000.00716.91
8.0.60.0070.00016.94
8.0.50.0030.00316.74
8.0.30.0110.00617.03
8.0.20.0090.00917.40
8.0.10.0000.00716.92
8.0.00.0110.00816.76
7.4.330.0000.00516.79
7.4.320.0000.00816.32
7.4.300.0000.00616.56
7.4.290.0040.00416.44
7.4.280.0000.00816.53
7.4.270.0030.00316.61
7.4.260.0030.00316.63
7.4.250.0040.00416.50
7.4.240.0050.00316.54
7.4.230.0030.00316.52
7.4.220.0160.00816.52
7.4.210.0080.00616.55
7.4.200.0000.00716.52
7.4.160.0130.01016.58
7.4.150.0070.01717.40
7.4.140.0090.01217.86
7.4.130.0050.01316.44
7.4.120.0070.01016.55
7.4.110.0090.00916.48
7.4.100.0070.01416.41
7.4.90.0100.00716.63
7.4.80.0100.01019.39
7.4.70.0030.01416.51
7.4.60.0090.00916.43
7.4.50.0030.01316.64
7.4.40.0070.01016.60
7.4.30.0150.00816.53
7.4.00.0070.01014.75
7.3.330.0050.00013.16
7.3.320.0050.00013.25
7.3.310.0030.00316.34
7.3.300.0020.00516.11
7.3.290.0100.00516.26
7.3.280.0070.01016.29
7.3.270.0060.01217.40
7.3.260.0120.01216.25
7.3.250.0090.00916.50
7.3.240.0110.00816.38
7.3.230.0070.01416.39
7.3.210.0030.01316.45
7.3.200.0060.01016.37
7.3.190.0080.01216.49
7.3.180.0110.00516.56
7.3.170.0070.01116.60
7.3.160.0080.00816.46
7.2.330.0130.01016.59
7.2.320.0110.01116.39
7.2.310.0130.00316.62
7.2.300.0050.01716.63
7.2.290.0180.01416.65
7.2.60.0090.00616.78
7.2.00.0070.00719.34
7.1.200.0070.00715.71
7.1.100.0000.01417.90
7.1.70.0000.00817.09
7.1.60.0090.01519.13
7.1.50.0070.01316.62
7.1.00.0070.07322.31
7.0.200.0030.00616.80
7.0.60.0100.08320.02
7.0.50.0030.05717.88
7.0.40.0100.07720.13
7.0.30.0330.07720.06
7.0.20.0330.07320.21
7.0.10.0030.06320.33
7.0.00.0030.08720.26
5.6.280.0000.03321.14
5.6.210.0070.07720.77
5.6.200.0000.06718.29
5.6.190.0070.08320.46
5.6.180.0400.07020.64
5.6.170.0300.07320.44
5.6.160.0100.06720.51
5.6.150.0070.03718.21
5.6.140.0030.05318.12
5.6.130.0100.06718.12
5.6.120.0070.07321.03
5.6.110.0170.06320.97
5.6.100.0100.03321.11
5.6.90.0030.07320.99
5.6.80.0130.05020.37
5.5.350.4270.03720.30
5.5.340.0070.06717.99
5.5.330.0200.07020.41
5.5.320.0330.07320.38
5.5.310.0370.03320.23
5.5.300.0030.06318.00
5.5.290.0030.04017.95
5.5.280.0130.06720.79
5.5.270.0200.08020.80
5.5.260.0230.07020.73
5.5.250.0030.08720.70
5.5.240.0130.07720.20

preferences:
43.48 ms | 400 KiB | 5 Q