3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function myPrivate() { return true; } } class Bar extends Foo {} $obj = new Bar; $reflMethod = new \ReflectionMethod($obj, 'myPrivate'); $reflMethod->setAccessible(true); $return = $reflMethod->invoke($obj); var_dump($return);

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.4.20.0170.00317.61
8.4.10.0130.00322.04
8.3.150.0070.00717.35
8.3.140.0040.01116.43
8.3.130.0030.00516.59
8.3.120.0060.00320.57
8.3.110.0080.00318.42
8.3.100.0050.00316.41
8.3.90.0060.00318.31
8.3.80.0030.00618.43
8.3.70.0110.00418.06
8.3.60.0060.00918.43
8.3.50.0080.00816.60
8.3.40.0030.01621.93
8.3.30.0110.00318.92
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0070.00026.16
8.2.260.0070.00716.71
8.2.250.0070.01118.43
8.2.240.0060.00317.23
8.2.230.0040.00420.94
8.2.220.0050.00324.06
8.2.210.0070.01426.77
8.2.200.0000.00918.04
8.2.190.0090.00618.41
8.2.180.0120.00616.63
8.2.170.0090.00619.01
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0090.00026.16
8.2.120.0030.00517.50
8.2.110.0180.00320.34
8.2.100.0070.00417.72
8.2.90.0280.00317.38
8.2.80.0250.00717.38
8.2.70.0250.00617.25
8.2.60.0240.00917.25
8.2.50.0280.00317.38
8.2.40.0230.00517.37
8.2.30.0270.00317.48
8.2.20.0180.00917.25
8.2.10.0160.01317.38
8.2.00.0280.00517.50
8.1.310.0040.00416.68
8.1.300.0000.00820.20
8.1.290.0110.00018.88
8.1.280.0150.00325.92
8.1.270.0000.00922.13
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.86
8.1.230.0080.00423.90
8.1.220.0280.00717.13
8.1.210.0250.00417.25
8.1.200.0270.00316.88
8.1.190.0190.00917.13
8.1.180.0260.00017.00
8.1.170.0230.00317.13
8.1.160.0200.00617.13
8.1.150.0270.00017.10
8.1.140.0190.00817.23
8.1.130.0240.00317.34
8.1.120.0210.00617.00
8.1.110.0230.00417.13
8.1.100.0240.00317.13
8.1.90.0170.01017.25
8.1.80.0250.00317.11
8.1.70.0240.00017.41
8.1.60.0280.00017.25
8.1.50.0220.00417.35
8.1.40.0200.00717.37
8.1.30.0260.00017.78
8.1.20.0240.00517.46
8.1.10.0240.00317.00
8.1.00.0210.00717.11
8.0.300.0180.00916.80
8.0.290.0260.00316.80
8.0.280.0240.00316.80
8.0.270.0200.01116.80
8.0.260.0210.00816.80
8.0.250.0220.00616.80
8.0.240.0180.00916.80
8.0.230.0240.00416.80
8.0.220.0250.00416.80
8.0.210.0240.00616.80
8.0.200.0290.00316.80
8.0.190.0250.00716.80
8.0.180.0300.00016.80
8.0.170.0270.00016.80
8.0.160.0190.00816.80
8.0.150.0220.00616.80
8.0.140.0210.00616.80
8.0.130.0200.00716.80
8.0.120.0270.00016.80
8.0.110.0220.00316.80
8.0.100.0240.00316.80
8.0.90.0250.00316.80
8.0.80.0250.00018.02
8.0.70.0270.00216.80
8.0.60.0210.00716.80
8.0.50.0210.00616.80
8.0.30.0240.00416.80
8.0.20.0280.00416.80
8.0.10.0200.00816.80

preferences:
30.52 ms | 403 KiB | 5 Q