3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(Bar $bar) { $bar->baz([$this, 'baz']); } protected function baz() { print 'Foobar!'.PHP_EOL; } } class Bar { public function baz(callable $baz) { $baz(); } } $foo = new Foo; $bar = new Bar; $foo->bar($bar);

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.0100.01018.38
8.3.50.0130.00621.25
8.3.40.0150.00018.73
8.3.30.0090.00618.79
8.3.20.0040.00420.38
8.3.10.0050.00323.61
8.3.00.0050.00319.79
8.2.180.0070.01116.75
8.2.170.0120.00322.96
8.2.160.0070.01019.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00417.50
8.2.110.0060.00322.24
8.2.100.0110.00017.75
8.2.90.0030.00519.17
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0000.01019.25
8.2.30.0030.00619.82
8.2.20.0050.00317.69
8.2.10.0000.00818.17
8.2.00.0000.00817.97
8.1.280.0070.01025.92
8.1.270.0100.01020.38
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0000.00922.05
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0000.00818.47
8.1.160.0070.00322.07
8.1.150.0000.00718.97
8.1.140.0040.00417.40
8.1.130.0000.00717.71
8.1.120.0030.00317.50
8.1.110.0000.00717.37
8.1.100.0040.00417.51
8.1.90.0050.00217.47
8.1.80.0000.00717.48
8.1.70.0000.00717.46
8.1.60.0030.00517.52
8.1.50.0040.00417.52
8.1.40.0080.00017.41
8.1.30.0110.00317.56
8.1.20.0040.00417.63
8.1.10.0060.00317.60
8.1.00.0040.00417.48
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0000.00717.28
8.0.260.0000.00917.28
8.0.250.0000.00716.91
8.0.240.0000.00717.05
8.0.230.0000.00716.98
8.0.220.0000.00716.93
8.0.210.0040.00417.00
8.0.200.0000.00616.90
8.0.190.0030.00517.04
8.0.180.0000.00716.88
8.0.170.0040.00417.01
8.0.160.0040.00417.02
8.0.150.0000.00916.90
8.0.140.0030.00516.89
8.0.130.0090.00013.39
8.0.120.0040.00416.82
8.0.110.0070.00016.89
8.0.100.0000.00716.91
8.0.90.0000.00716.84
8.0.80.0060.00916.96
8.0.70.0000.00716.95
8.0.60.0000.00717.00
8.0.50.0000.00717.04
8.0.30.0070.01116.90
8.0.20.0060.01217.40
8.0.10.0000.00717.11
8.0.00.0090.00916.86
7.4.330.0030.00315.14
7.4.320.0060.00016.57
7.4.300.0030.00316.58
7.4.290.0090.00016.62
7.4.280.0020.01016.60
7.4.270.0030.00316.47
7.4.260.0040.00316.64
7.4.250.0040.00416.47
7.4.240.0020.00616.42
7.4.230.0040.00416.54
7.4.220.0100.00716.61
7.4.210.0090.00616.64
7.4.200.0000.00716.57
7.4.160.0080.00816.69
7.4.150.0080.01117.40
7.4.140.0160.00317.86
7.4.130.0070.01116.49
7.4.120.0090.01016.48
7.4.110.0120.01216.65
7.4.100.0130.01016.55
7.4.90.0130.00316.68
7.4.80.0070.01019.39
7.4.70.0120.00916.63
7.4.60.0110.00616.67
7.4.50.0000.00916.34
7.4.40.0120.00416.53
7.4.30.0080.01116.66
7.4.00.0090.00615.06
7.3.330.0000.00513.38
7.3.320.0050.00313.14
7.3.310.0070.00016.46
7.3.300.0030.00316.23
7.3.290.0060.01216.34
7.3.280.0060.01116.28
7.3.270.0060.01517.40
7.3.260.0030.01416.45
7.3.250.0100.00816.58
7.3.240.0080.00916.57
7.3.230.0100.01316.39
7.3.210.0120.00616.46
7.3.200.0070.01016.61
7.3.190.0060.01016.36
7.3.180.0100.00616.38
7.3.170.0090.01216.43
7.3.160.0050.01616.30
7.2.330.0030.01316.43
7.2.320.0120.00916.33
7.2.310.0130.00616.37
7.2.300.0110.00616.72
7.2.290.0110.00716.38
7.2.60.0100.00316.98
7.2.00.0000.01219.45
7.1.200.0030.01015.88
7.1.100.0000.01117.90
7.1.70.0000.01017.06
7.1.60.0130.00319.17
7.1.50.0070.01416.64
7.1.00.0000.07722.34
7.0.200.0080.00316.70
7.0.60.0070.04719.92
7.0.50.0100.05717.92
7.0.40.0100.03720.24
7.0.30.0200.04020.07
7.0.20.0270.06320.10
7.0.10.0030.08320.25
7.0.00.0070.05020.09
5.6.280.0000.03320.83
5.6.210.0000.09020.61
5.6.200.0030.05018.17
5.6.190.0070.08020.64
5.6.180.3600.03320.50
5.6.170.0300.07320.76
5.6.160.0130.08020.52
5.6.150.0100.07718.27
5.6.140.0030.08718.26
5.6.130.0130.04318.18
5.6.120.0070.05021.11
5.6.110.0100.08320.90
5.6.100.0100.08020.98
5.6.90.0170.06721.00
5.6.80.0030.04020.51
5.6.70.4330.03320.37
5.5.350.0030.08720.53
5.5.340.0030.08718.09
5.5.330.0030.08020.37
5.5.320.0270.06320.20
5.5.310.0300.07020.25
5.5.300.0100.04317.93
5.5.290.0100.07717.92
5.5.280.0000.04720.90
5.5.270.0030.09020.98
5.5.260.0100.08320.68
5.5.250.0070.04020.58
5.5.240.0200.06020.19
5.4.450.1230.06719.25
5.4.440.0970.06319.41
5.4.430.0970.05719.27
5.4.420.1100.03319.08
5.4.410.0930.04719.27
5.4.400.0830.05719.10
5.4.390.0930.05318.77
5.4.380.0830.04318.95
5.4.370.0630.05719.21
5.4.360.0700.05019.13
5.4.350.0670.05718.95
5.4.340.0600.06319.12
5.4.320.0830.05019.12
5.4.310.1200.06719.22
5.4.300.0930.05318.91
5.4.290.0800.06719.10
5.4.280.1000.05019.18
5.4.270.0900.06019.18
5.4.260.0930.05018.94
5.4.250.0800.04719.11
5.4.240.0730.05019.13
5.4.230.0670.05318.89
5.4.220.0700.05718.89
5.4.210.0630.06019.20
5.4.200.0770.04718.89
5.4.190.0770.04719.24
5.4.180.0700.05018.89
5.4.170.1100.04019.17
5.4.160.0870.05718.93
5.4.150.0930.05718.90
5.4.140.0930.05016.43
5.4.130.0700.05316.44
5.4.120.0770.05016.38
5.4.110.0770.04316.59
5.4.100.0800.04016.52
5.4.90.0700.04716.45
5.4.80.0800.04016.33
5.4.70.0300.06316.39
5.4.60.0370.06316.52
5.4.50.0070.05316.50
5.4.40.0100.03716.44
5.4.30.0000.05716.43
5.4.20.0200.04316.38

preferences:
43.09 ms | 401 KiB | 5 Q