3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { private function foo() { echo __METHOD__; } function YinX() { $y = new y(); $y->foo(); } } class y extends x { function YinY() { $this->foo(); } } // here, Y can call private foo(); (new x)->YinX(); // here, Y cannot call foo() (new y)->YinY(); ?>

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.5.60.0100.00916.86
8.5.50.0080.00518.58
8.5.30.0100.00817.85
8.5.20.0080.00819.91
8.5.10.0130.00717.03
8.5.00.0110.01019.83
8.4.210.0110.00619.54
8.4.180.0160.00719.59
8.4.170.0130.00823.78
8.4.160.0160.00823.83
8.4.150.0090.00316.90
8.4.140.0130.00717.80
8.4.130.0030.00618.13
8.4.120.0140.00620.71
8.4.110.0140.00522.46
8.4.100.0100.01017.88
8.4.90.0100.01120.66
8.4.80.0100.00818.91
8.4.70.0040.00618.81
8.4.60.0130.00719.00
8.4.50.0030.00520.47
8.4.40.0060.01317.89
8.4.30.0110.00720.50
8.4.20.0240.01019.61
8.4.10.0340.00317.59
8.3.300.0130.00720.80
8.3.290.0110.01120.75
8.3.280.0130.00818.30
8.3.270.0130.00716.42
8.3.260.0120.00816.59
8.3.250.0100.00918.96
8.3.240.0140.00516.72
8.3.230.0090.00716.60
8.3.220.0100.01018.88
8.3.210.0070.01218.19
8.3.200.0050.00416.54
8.3.190.0110.00717.29
8.3.180.0100.00918.81
8.3.170.0070.01117.34
8.3.160.0000.00818.63
8.3.150.0140.00616.81
8.3.140.0360.00616.46
8.3.130.0240.01216.55
8.3.120.0210.01516.46
8.3.110.0440.00416.33
8.3.100.0540.00316.62
8.3.90.0350.01516.52
8.3.80.0460.00016.41
8.3.70.0330.01016.35
8.3.60.0340.00716.70
8.3.50.0350.01216.84
8.3.40.0360.00417.40
8.3.30.0290.01317.52
8.3.20.0240.00817.50
8.3.10.0280.00317.61
8.3.00.0170.00919.35
8.2.300.0090.01323.98
8.2.290.0120.00420.63
8.2.280.0090.00618.78
8.2.270.0280.00916.56
8.2.260.0330.00716.47
8.2.250.0360.00616.35
8.2.240.0340.00716.54
8.2.230.0280.01116.78
8.2.220.0260.01116.59
8.2.210.0320.00616.39
8.2.200.0300.00816.66
8.2.190.0300.00916.56
8.2.180.0290.00616.73
8.2.170.0340.01017.73
8.2.160.0310.00817.63
8.2.150.0340.00717.61
8.2.140.0380.00317.39
8.2.130.0340.00717.46
8.2.120.0310.00917.63
8.2.110.0500.00617.40
8.2.100.0270.01617.65
8.2.90.0210.00017.71
8.2.80.0160.00517.28
8.2.70.0120.00617.27
8.2.60.0190.00317.26
8.2.50.0130.00617.55
8.2.40.0180.00017.27
8.2.30.0210.00417.36
8.2.20.0270.00317.37
8.2.10.0230.00317.39
8.2.00.0080.01117.44
8.1.340.0100.01021.71
8.1.320.0100.00917.84

preferences:
59.73 ms | 868 KiB | 5 Q