3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private function do_something (bool $str) { echo "private function"; } public function call_something(foo $obj) { call_user_func([$obj, 'do_something'], true); } } class bar extends foo { public function do_something (bool $value) { echo "subclass"; } } $a = new foo(); $b = new bar(); $a->call_something($b);

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.0160.00016.36
8.3.50.0150.00321.97
8.3.40.0060.01318.96
8.3.30.0080.00618.68
8.3.20.0000.00720.39
8.3.10.0040.00421.89
8.3.00.0040.00419.97
8.2.180.0140.00716.48
8.2.170.0080.01122.96
8.2.160.0090.00620.44
8.2.150.0070.00724.18
8.2.140.0030.00524.66
8.2.130.0040.00421.18
8.2.120.0030.00526.35
8.2.110.0060.00320.43
8.2.100.0070.00717.72
8.2.90.0050.00319.41
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00522.20
8.2.30.0000.00720.62
8.2.20.0040.00417.63
8.2.10.0050.00317.92
8.2.00.0000.00718.03
8.1.280.0070.00725.92
8.1.270.0040.00420.24
8.1.260.0070.00028.09
8.1.250.0030.00328.09
8.1.240.0030.00723.90
8.1.230.0110.00024.05
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.13
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0030.00618.66
8.1.160.0070.00020.80
8.1.150.0000.00718.84
8.1.140.0080.00019.63
8.1.130.0080.00017.60
8.1.120.0070.00017.35
8.1.110.0040.00417.33
8.1.100.0040.00417.48
8.1.90.0040.00417.52
8.1.80.0040.00417.42
8.1.70.0040.00417.25
8.1.60.0060.00317.57
8.1.50.0040.00417.54
8.1.40.0030.00617.55
8.1.30.0080.00017.69
8.1.20.0070.00017.68
8.1.10.0040.00417.54
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.38
8.0.270.0030.00317.21
8.0.260.0030.00317.30
8.0.250.0000.00717.01
8.0.240.0030.00316.88
8.0.230.0070.00417.05
8.0.220.0040.00416.93
8.0.210.0030.00416.90
8.0.200.0030.00316.98
8.0.190.0090.00016.87
8.0.180.0030.00516.93
8.0.170.0040.00416.90
8.0.160.0000.00917.05
8.0.150.0040.00316.81
8.0.140.0070.00016.86
8.0.130.0050.00013.28
8.0.120.0000.00816.78
8.0.110.0050.00216.91
8.0.100.0000.00716.76
8.0.90.0040.00416.77
8.0.80.0130.00316.92
8.0.70.0040.00416.85
8.0.60.0000.00816.84
8.0.50.0070.00016.80
8.0.30.0080.01017.08
8.0.20.0100.01117.40
8.0.10.0070.00016.92
8.0.00.0080.00916.75
7.4.330.0060.00016.83
7.4.320.0000.00616.48
7.4.300.0040.00416.48
7.4.290.0030.00316.61
7.4.280.0040.00416.43
7.4.270.0030.00316.55
7.4.260.0070.00016.62
7.4.250.0030.00516.54
7.4.240.0050.00216.54
7.4.230.0000.00716.48
7.4.220.0100.00716.46
7.4.210.0050.01016.61
7.4.200.0030.00316.24
7.4.160.0120.00316.55
7.4.150.0130.00717.40
7.4.140.0110.00717.86
7.4.130.0070.01116.55
7.4.120.0070.01116.44
7.4.110.0060.01216.53
7.4.100.0180.00016.51
7.4.90.0130.00316.40
7.4.80.0120.01219.39
7.4.70.0060.00916.39
7.4.60.0070.01016.45
7.4.50.0000.01916.60
7.4.40.0160.00016.47
7.4.30.0070.01516.57
7.4.00.0030.01215.08
7.3.330.0000.00513.29
7.3.320.0020.00313.31
7.3.310.0000.00716.09
7.3.300.0030.00316.21
7.3.290.0090.00516.27
7.3.280.0080.00916.30
7.3.270.0120.00617.40
7.3.260.0120.00616.54
7.3.240.0090.00816.36
7.3.230.0120.00616.39
7.3.210.0030.01316.21
7.3.200.0100.00616.22
7.3.190.0120.00416.28
7.3.180.0070.01016.44
7.3.170.0120.00316.28
7.3.160.0070.01016.52
7.2.330.0070.01016.65
7.2.320.0070.01416.64
7.2.310.0080.01216.70
7.2.300.0110.00816.84
7.2.290.0030.01616.84
7.2.60.0090.00317.07
7.2.00.0030.01019.46
7.1.200.0070.00415.95
7.1.100.0060.00618.28
7.1.70.0000.00717.08
7.1.60.0070.01719.44
7.1.50.0030.02117.04
7.1.00.0100.08022.48
7.0.200.0070.00016.88
7.0.60.0070.07320.03
7.0.50.0070.06317.87
7.0.40.0130.05720.11
7.0.30.0200.04320.30
7.0.20.0300.08020.25
7.0.10.0070.04320.22
7.0.00.0070.05720.30
5.6.280.0000.03321.10
5.6.210.0070.07720.77
5.6.200.0030.05718.27
5.6.190.0230.07020.46
5.6.180.0200.08020.39
5.6.170.0300.08020.34
5.6.160.0100.08720.55
5.6.150.0170.05318.13
5.6.140.0070.04018.19
5.6.130.0100.05018.27
5.6.120.0070.09020.91
5.6.110.0170.07020.98
5.6.100.0030.08721.12
5.6.90.0030.04020.97
5.6.80.0030.08020.42
5.5.350.0130.06320.45
5.5.340.0100.03317.93
5.5.330.0070.08720.40
5.5.320.0300.08020.27
5.5.310.0100.04720.32
5.5.300.0070.08317.97
5.5.290.0030.04317.93
5.5.280.0000.05020.86
5.5.270.0100.04720.76
5.5.260.0130.07020.84
5.5.250.0200.07020.55
5.5.240.3830.04320.35

preferences:
62.31 ms | 401 KiB | 5 Q