3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PrivacyViolator { private $caller; function __construct() { $this->caller = function ($method, $args) { return call_user_func_array([$this, $method], $args); }; } function callPrivateMethod($object, $method, $args) { $this->caller->bindTo($object, $object); return $this->caller($method, $args); } } class MyClass { private function hello($args) { var_dump($args); } } $myObject = new MyClass(); $privacyViolator = new PrivacyViolator(); $privacyViolator->callPrivateMethod($myObject, 'hello', ['world']);

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.0070.01318.07
8.4.10.0130.00717.75
8.3.150.0110.00716.73
8.3.140.0040.00417.15
8.3.130.0060.00318.59
8.3.120.0110.00419.00
8.3.110.0070.00420.94
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0060.00318.55
8.3.70.0090.00616.75
8.3.60.0140.01016.88
8.3.50.0110.00922.12
8.3.40.0110.00418.84
8.3.30.0070.00719.07
8.3.20.0050.00320.35
8.3.10.0050.00323.70
8.3.00.0040.00418.96
8.2.270.0120.00617.43
8.2.260.0120.00316.49
8.2.250.0130.00618.41
8.2.240.0060.00319.14
8.2.230.0070.01122.58
8.2.220.0080.00037.54
8.2.210.0030.00626.77
8.2.200.0030.00618.41
8.2.190.0140.00018.31
8.2.180.0130.00718.79
8.2.170.0040.01522.96
8.2.160.0140.00420.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0050.00319.36
8.2.110.0000.00922.25
8.2.100.0070.00417.91
8.2.90.0000.00719.28
8.2.80.0040.00419.25
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00419.82
8.2.30.0000.00721.21
8.2.20.0030.00517.68
8.2.10.0040.00419.90
8.2.00.0000.00819.89
8.1.310.0120.00618.49
8.1.300.0090.00619.59
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0040.00420.32
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0130.00020.73
8.1.230.0060.00620.97
8.1.220.0030.00618.77
8.1.210.0000.00818.93
8.1.200.0030.00617.48
8.1.190.0040.00417.66
8.1.180.0030.00618.10
8.1.170.0040.00418.45
8.1.160.0040.00418.86
8.1.150.0040.00418.95
8.1.140.0000.00717.45
8.1.130.0000.00717.89
8.1.120.0000.00717.46
8.1.110.0040.00417.46
8.1.100.0040.00417.45
8.1.90.0030.00317.37
8.1.80.0000.00717.47
8.1.70.0030.00317.34
8.1.60.0040.00417.58
8.1.50.0030.00617.53
8.1.40.0040.00417.40
8.1.30.0000.00817.54
8.1.20.0080.00017.65
8.1.10.0000.00717.48
8.1.00.0000.00717.47
8.0.300.0040.00419.98
8.0.290.0000.00817.16
8.0.280.0000.00718.29
8.0.270.0000.00717.29
8.0.260.0030.00316.73
8.0.250.0070.00016.82
8.0.240.0050.00216.93
8.0.230.0050.00316.95
8.0.220.0070.00016.84
8.0.210.0050.00216.89
8.0.200.0030.00317.09
8.0.190.0040.00416.93
8.0.180.0000.00816.89
8.0.170.0000.00816.91
8.0.160.0040.00417.07
8.0.150.0040.00416.97
8.0.140.0040.00416.90
8.0.130.0050.00313.38
8.0.120.0000.00716.82
8.0.110.0000.00816.87
8.0.100.0000.00716.79
8.0.90.0040.00416.96
8.0.80.0120.00916.86
8.0.70.0000.00716.96
8.0.60.0000.00716.94
8.0.50.0040.00416.79
8.0.30.0100.01017.16
8.0.20.0110.00717.40
8.0.10.0040.00417.09
8.0.00.0110.00816.72
7.4.330.0000.00515.05
7.4.320.0000.00616.61
7.4.300.0030.00316.52
7.4.290.0030.00316.52
7.4.280.0070.00016.51
7.4.270.0040.00416.59
7.4.260.0070.00016.51
7.4.250.0030.00316.61
7.4.240.0020.00516.54
7.4.230.0030.00516.59
7.4.220.0120.00616.58
7.4.210.0110.00416.55
7.4.200.0040.00416.67
7.4.160.0060.00916.42
7.4.150.0100.01317.40
7.4.140.0090.00917.86
7.4.130.0210.00016.55
7.4.120.0110.00616.58
7.4.110.0060.00916.70
7.4.100.0150.00616.52
7.4.90.0060.01116.49
7.4.80.0150.00319.39
7.4.70.0030.01316.56
7.4.60.0060.01116.50
7.4.50.0000.01016.46
7.4.40.0070.00916.44
7.4.30.0150.01216.27
7.4.00.0070.00715.05
7.3.330.0060.00313.24
7.3.320.0050.00013.21
7.3.310.0030.00516.41
7.3.300.0070.00016.34
7.3.290.0020.01116.32
7.3.280.0090.00516.36
7.3.270.0080.00817.40
7.3.260.0170.00016.44
7.3.240.0100.00616.36
7.3.230.0060.01216.43
7.3.210.0050.01116.52
7.3.200.0110.00616.37
7.3.190.0050.01116.42
7.3.180.0080.00816.32
7.3.170.0060.01016.58
7.3.160.0100.00716.34
7.3.10.0090.00816.32
7.3.00.0110.00816.49
7.2.330.0070.01016.59
7.2.320.0090.01216.71
7.2.310.0090.00916.39
7.2.300.0120.00616.69
7.2.290.0090.01216.72
7.2.130.0110.01116.57
7.2.120.0060.00416.64
7.2.110.0100.01116.71
7.2.100.0060.00816.64
7.2.90.0060.00816.72
7.2.80.0040.00916.87
7.2.70.0080.00516.63
7.2.60.0030.00716.79
7.2.50.0070.00916.81
7.2.40.0090.00616.87
7.2.30.0060.00816.90
7.2.20.0070.00416.90
7.2.10.0030.01116.65
7.2.00.0090.00517.71
7.1.250.0290.00715.53
7.1.200.0090.00015.59
7.1.100.0070.00718.03
7.1.70.0040.00417.03
7.1.60.0030.02119.11
7.1.50.0100.01317.00
7.1.00.0000.08022.44
7.0.200.0040.00714.95
7.0.60.0070.08019.97
7.0.50.0070.04017.93
7.0.40.0030.04720.14
7.0.30.0230.04720.23
7.0.20.0200.04020.12
7.0.10.0130.08020.08
7.0.00.0170.07320.15
5.6.280.0030.07320.91
5.6.210.0030.08720.62
5.6.200.0130.08018.19
5.6.190.0030.05720.61
5.6.180.0470.07020.48
5.6.170.0470.05720.47
5.6.160.0070.04020.54
5.6.150.0030.08018.14
5.6.140.0070.08018.21
5.6.130.0070.07718.23
5.6.120.0130.05021.13
5.6.110.0100.07720.98
5.6.100.0070.04021.05
5.6.90.0070.05720.98
5.6.80.0030.07720.52
5.5.350.0170.05720.45
5.5.340.0070.08017.99
5.5.330.0100.05020.40
5.5.320.3830.05020.20
5.5.310.0330.08320.34
5.5.300.0070.07018.04
5.5.290.0070.08717.98
5.5.280.0100.05320.67
5.5.270.0030.04320.87
5.5.260.0070.04720.78
5.5.250.0070.08020.56
5.5.240.0270.05720.28
5.4.450.0300.05319.53
5.4.440.0370.04719.39
5.4.430.0300.07019.47
5.4.420.0300.07019.41
5.4.410.0270.06019.41
5.4.400.0400.06019.06
5.4.390.0300.07019.11
5.4.380.0400.04019.24
5.4.370.0200.05019.18
5.4.360.0230.05718.87
5.4.350.0330.06018.99
5.4.340.0330.06018.95
5.4.320.0230.06719.24
5.4.310.0230.06018.85
5.4.300.0400.05719.15
5.4.290.0270.03718.96
5.4.280.0270.04719.31
5.4.270.0170.04718.87
5.4.260.0300.07018.84
5.4.250.0370.05718.85
5.4.240.0400.06019.30
5.4.230.0270.03719.10
5.4.220.0130.04719.13
5.4.210.0170.04319.14
5.4.200.0200.04318.98
5.4.190.0170.04019.30
5.4.180.0230.03718.93
5.4.170.0270.03018.98
5.4.160.0300.02318.97
5.4.150.0100.04319.07
5.4.140.0200.03316.44
5.4.130.0200.03316.38
5.4.120.0230.03316.73
5.4.110.0170.04316.63
5.4.100.0200.03316.32
5.4.90.0130.03716.64
5.4.80.0170.03316.31
5.4.70.0200.03316.61
5.4.60.0200.03316.54
5.4.50.0130.03716.53
5.4.40.0200.03316.53
5.4.30.0170.03716.55
5.4.20.0230.03316.25
5.4.10.0230.03016.42
5.4.00.0270.02715.82
5.3.290.0400.06014.68
5.3.280.0200.03714.68
5.3.270.0130.04014.62
5.3.260.0170.03714.72
5.3.250.0130.04714.58
5.3.240.0130.04314.74
5.3.230.0200.03714.52
5.3.220.0300.02314.58
5.3.210.0200.03314.48
5.3.200.0200.03314.55
5.3.190.0200.03714.69
5.3.180.0230.03314.56
5.3.170.0170.03714.79
5.3.160.0170.03714.72
5.3.150.0130.04014.47
5.3.140.0230.03014.55
5.3.130.0170.04714.54
5.3.120.0200.07714.52
5.3.110.0200.03314.66
5.3.100.0200.03314.09
5.3.90.0230.03714.07
5.3.80.0100.04313.92
5.3.70.0130.04714.06
5.3.60.0200.06714.16
5.3.50.0270.05713.87
5.3.40.0300.04314.12
5.3.30.0230.05713.88
5.3.20.0300.06713.62
5.3.10.0300.04313.88
5.3.00.0170.04313.55
5.2.170.0300.05011.91
5.2.160.0170.06311.91
5.2.150.0270.05011.91
5.2.140.0200.06311.91
5.2.130.0230.05011.91
5.2.120.0230.05711.91
5.2.110.0200.03011.91
5.2.100.0230.05711.91
5.2.90.0270.06011.91
5.2.80.0200.06311.91
5.2.70.0200.04711.91
5.2.60.0300.04011.91
5.2.50.0170.05711.91
5.2.40.0170.06011.91
5.2.30.0130.05711.91
5.2.20.0230.05711.91
5.2.10.0230.04311.91
5.2.00.0270.03011.91
5.1.60.0230.04711.91
5.1.50.0270.04711.91
5.1.40.0130.04311.91
5.1.30.0230.04011.91
5.1.20.0270.03711.91
5.1.10.0130.04711.91
5.1.00.0170.04711.91
5.0.50.0100.03711.91
5.0.40.0170.04011.91
5.0.30.0130.05311.91
5.0.20.0170.03711.91
5.0.10.0070.03011.91
5.0.00.0130.05011.91
4.4.90.0100.03711.91
4.4.80.0130.03311.91
4.4.70.0070.03711.91
4.4.60.0130.03011.91
4.4.50.0200.02711.91
4.4.40.0070.05711.91
4.4.30.0070.03011.91
4.4.20.0130.02311.91
4.4.10.0170.02711.91
4.4.00.0100.03311.91
4.3.110.0100.03011.91
4.3.100.0130.03011.91
4.3.90.0100.02711.91
4.3.80.0070.05311.91
4.3.70.0070.02311.91
4.3.60.0100.02311.91
4.3.50.0170.02011.91
4.3.40.0100.05311.91
4.3.30.0030.02311.91
4.3.20.0030.02311.91
4.3.10.0070.03711.91
4.3.00.0030.03711.91

preferences:
33.61 ms | 403 KiB | 5 Q