3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function foo(Bar $bar) { $bar->bar([$this, 'bar']); } protected function bar() { print 'Foobar!'.PHP_EOL; } } class Bar { public function bar(callable $bar) { $bar(); } } $foo = new Foo; $bar = new Bar; $foo->foo($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.0180.00416.63
8.3.50.0180.00321.19
8.3.40.0150.00018.71
8.3.30.0150.00018.57
8.3.20.0050.00320.34
8.3.10.0040.00423.58
8.3.00.0040.00419.68
8.2.180.0040.01516.63
8.2.170.0120.00322.96
8.2.160.0110.00420.49
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0030.00617.63
8.2.110.0050.00520.99
8.2.100.0070.00717.91
8.2.90.0050.00319.17
8.2.80.0070.00417.97
8.2.70.0110.00017.59
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00721.11
8.2.30.0070.00319.85
8.2.20.0040.00417.70
8.2.10.0020.00518.09
8.2.00.0040.00418.17
8.1.280.0030.01025.92
8.1.270.0030.01020.43
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01022.10
8.1.230.0030.00718.96
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0090.00017.36
8.1.180.0030.00518.10
8.1.170.0000.00818.57
8.1.160.0060.00622.05
8.1.150.0040.00418.95
8.1.140.0060.00317.49
8.1.130.0080.00017.71
8.1.120.0040.00417.50
8.1.110.0040.00417.46
8.1.100.0040.00417.55
8.1.90.0070.00017.38
8.1.80.0030.00517.45
8.1.70.0000.00717.43
8.1.60.0040.00417.55
8.1.50.0030.00517.50
8.1.40.0030.00517.40
8.1.30.0040.00817.60
8.1.20.0040.00417.69
8.1.10.0030.00617.52
8.1.00.0040.00417.54
8.0.300.0000.00820.26
8.0.290.0050.00316.75
8.0.280.0030.00518.46
8.0.270.0000.00717.31
8.0.260.0070.00317.28
8.0.250.0040.00417.03
8.0.240.0000.00717.02
8.0.230.0000.00817.02
8.0.220.0030.00317.01
8.0.210.0050.00316.90
8.0.200.0000.00616.92
8.0.190.0070.00417.07
8.0.180.0000.00716.89
8.0.170.0000.00816.91
8.0.160.0040.00416.94
8.0.150.0060.00616.91
8.0.140.0070.00016.81
8.0.130.0040.00413.38
8.0.120.0000.00716.84
8.0.110.0040.00416.97
8.0.100.0000.00716.93
8.0.90.0050.00217.04
8.0.80.0090.00617.03
8.0.70.0040.00416.93
8.0.60.0040.00417.02
8.0.50.0030.00516.82
8.0.30.0070.01417.21
8.0.20.0080.01017.40
8.0.10.0040.00416.98
8.0.00.0070.01116.81
7.4.330.0060.00015.08
7.4.320.0030.00316.41
7.4.300.0030.00316.35
7.4.290.0080.00416.55
7.4.280.0080.00416.55
7.4.270.0000.00716.36
7.4.260.0030.00316.44
7.4.250.0070.00016.43
7.4.240.0000.00716.53
7.4.230.0030.00316.66
7.4.220.0100.01016.49
7.4.210.0090.00916.32
7.4.200.0050.00316.62
7.4.160.0030.01316.58
7.4.150.0060.01317.40
7.4.140.0110.00817.86
7.4.130.0120.00616.50
7.4.120.0070.01016.56
7.4.110.0100.01316.23
7.4.100.0070.01016.37
7.4.90.0160.00016.53
7.4.80.0120.01219.39
7.4.70.0110.01116.44
7.4.60.0080.00816.48
7.4.50.0050.00016.31
7.4.40.0170.00016.50
7.4.30.0120.00616.50
7.4.00.0100.00714.89
7.3.330.0000.00513.35
7.3.320.0030.00613.32
7.3.310.0040.00416.25
7.3.300.0070.00016.24
7.3.290.0090.00816.38
7.3.280.0110.00816.33
7.3.270.0110.00717.40
7.3.260.0100.01316.55
7.3.250.0110.00616.29
7.3.240.0090.00916.47
7.3.230.0180.00616.40
7.3.210.0090.00916.32
7.3.200.0110.00816.38
7.3.190.0070.01116.30
7.3.180.0090.00916.28
7.3.170.0120.00916.56
7.3.160.0170.00416.39
7.2.330.0150.00316.32
7.2.320.0180.00616.66
7.2.310.0120.01216.48
7.2.300.0110.00716.36
7.2.290.0080.00916.41
7.2.60.0000.01516.83
7.1.200.0130.00015.68
7.1.70.0030.00716.86
7.1.60.0140.00019.17
7.1.50.0070.01816.91
7.1.00.0130.06722.51
7.0.200.0070.01016.76
7.0.60.0000.08319.79
7.0.50.0100.04717.88
7.0.40.0200.04320.26
7.0.30.0130.05320.23
7.0.20.0270.07320.30
7.0.10.0000.04720.06
7.0.00.0070.08320.12
5.6.280.0030.03020.92
5.6.210.0130.04020.71
5.6.200.0070.04018.18
5.6.190.0000.04720.59
5.6.180.3730.04020.68
5.6.170.0300.07320.46
5.6.160.0170.07320.55
5.6.150.0070.07718.20
5.6.140.0030.07318.16
5.6.130.0100.06718.18
5.6.120.0000.04321.13
5.6.110.0170.04721.14
5.6.100.0070.07721.02
5.6.90.0000.04320.88
5.6.80.0000.04020.43
5.6.70.2930.03720.40
5.5.350.0100.07720.44
5.5.340.0030.04017.98
5.5.330.0100.08720.38
5.5.320.0470.06320.34
5.5.310.0300.04720.40
5.5.300.0170.07018.06
5.5.290.0030.05717.99
5.5.280.0000.09720.77
5.5.270.0030.09020.96
5.5.260.0030.08720.77
5.5.250.0170.07020.50
5.5.240.0200.08020.36
5.4.450.0870.05319.27
5.4.440.0730.05719.23
5.4.430.0670.05719.27
5.4.420.0770.05319.29
5.4.410.0700.05319.29
5.4.400.0800.05319.12
5.4.390.0700.05318.93
5.4.380.0730.05718.90
5.4.370.0800.07718.90
5.4.360.0730.05318.94
5.4.350.1070.07019.14
5.4.340.0900.06319.12
5.4.320.0570.07018.92
5.4.310.0770.05019.21
5.4.300.0800.04319.10
5.4.290.0770.05018.95
5.4.280.0800.05319.09
5.4.270.0830.05318.94
5.4.260.0900.04018.78
5.4.250.0900.05319.11
5.4.240.0700.07019.11
5.4.230.0630.06019.08
5.4.220.0970.05018.95
5.4.210.0930.04719.12
5.4.200.0900.05018.96
5.4.190.0900.05319.20
5.4.180.0900.05319.11
5.4.170.1100.04718.95
5.4.160.0930.05318.93
5.4.150.1100.06019.14
5.4.140.1030.07316.45
5.4.130.0730.04316.39
5.4.120.0930.04316.39
5.4.110.0700.06316.52
5.4.100.0630.06016.61
5.4.90.0900.06316.61
5.4.80.1170.04016.49
5.4.70.0270.04316.59
5.4.60.0230.06016.49
5.4.50.0100.03016.16
5.4.40.0270.06316.42
5.4.30.0070.06716.33
5.4.20.0200.05016.55

preferences:
50.32 ms | 401 KiB | 5 Q