3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test\Biz; class Foo { public function bar(callable $callable) { echo $callable; } } function demonstrate2(callable $callable) { } echo 'Function: '; echo demonstrate2('\Test\Biz\Foo::bar'); echo PHP_EOL . 'Method: '; (new Foo())->bar('\Test\Biz\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.130.0000.00818.72
8.3.120.0080.00019.09
8.3.110.0120.00420.94
8.3.100.0110.00416.64
8.3.90.0080.00026.77
8.3.80.0070.00316.50
8.3.70.0100.00718.56
8.3.60.0140.00718.56
8.3.50.0040.01516.65
8.3.40.0180.00418.92
8.3.30.0110.00418.70
8.3.20.0040.00420.90
8.3.10.0030.00620.89
8.3.00.0040.00421.87
8.2.250.0050.00316.96
8.2.240.0080.00017.24
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00317.00
8.2.190.0120.00617.00
8.2.180.0070.00725.92
8.2.170.0000.01522.96
8.2.160.0070.00720.43
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00026.16
8.2.110.0040.00722.16
8.2.100.0070.00417.72
8.2.90.0080.00022.32
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0050.00318.03
8.2.50.0000.00818.10
8.2.40.0000.00819.47
8.2.30.0000.00819.18
8.2.20.0000.00717.88
8.2.10.0040.00418.88
8.2.00.0070.00019.43
8.1.300.0050.00516.16
8.1.290.0060.00330.84
8.1.280.0190.00025.92
8.1.270.0000.00822.17
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00422.48
8.1.230.0030.00921.03
8.1.220.0040.00417.74
8.1.210.0040.00418.95
8.1.200.0000.00817.10
8.1.190.0030.00517.22
8.1.180.0000.00918.10
8.1.170.0040.00418.52
8.1.160.0050.00218.82
8.1.150.0000.00718.90
8.1.140.0040.00418.74
8.1.130.0030.00619.99
8.1.120.0070.00017.36
8.1.110.0080.00017.39
8.1.100.0020.00517.38
8.1.90.0040.00417.24
8.1.80.0020.00517.25
8.1.70.0000.00817.39
8.1.60.0000.00817.53
8.1.50.0040.00417.50
8.1.40.0050.00317.49
8.1.30.0000.00717.63
8.1.20.0080.00017.57
8.1.10.0000.00817.57
8.1.00.0030.00517.44
8.0.300.0030.00520.04
8.0.290.0070.00316.58
8.0.280.0000.00818.43
8.0.270.0030.00317.27
8.0.260.0030.00318.39
8.0.250.0070.00016.98
8.0.240.0050.00217.00
8.0.230.0040.00417.00
8.0.220.0000.01016.98
8.0.210.0000.00816.86
8.0.200.0000.00616.85
8.0.190.0000.00816.93
8.0.180.0070.00016.95
8.0.170.0040.00416.82
8.0.160.0080.00016.97
8.0.150.0030.00316.72
8.0.140.0040.00416.87
8.0.130.0000.00813.28
8.0.120.0000.00816.73
8.0.110.0030.00516.94
8.0.100.0070.00017.03
8.0.90.0070.00016.96
8.0.80.0130.00816.91
8.0.70.0070.00016.79
8.0.60.0000.00716.71
8.0.50.0030.00316.79
8.0.30.0110.00716.98
8.0.20.0140.00917.06
8.0.10.0050.00316.93
8.0.00.0060.01416.80
7.4.330.0000.00415.55
7.4.320.0000.00616.56
7.4.300.0050.00316.46
7.4.290.0000.00816.45
7.4.280.0030.00516.48
7.4.270.0070.00016.46
7.4.260.0000.00816.42
7.4.250.0070.00016.41
7.4.240.0000.00816.61
7.4.230.0070.00016.49
7.4.220.0080.00016.35
7.4.210.0050.00916.48
7.4.200.0030.00316.55
7.4.160.0090.00916.64
7.4.130.0070.01016.36
7.4.120.0040.01216.80
7.4.110.0130.00316.66
7.4.100.0060.01216.61
7.4.90.0140.00716.60
7.4.80.0090.01319.39
7.4.70.0170.00316.46
7.4.60.0050.01016.32
7.4.50.0090.00216.33
7.4.40.0130.00316.28
7.4.00.0060.00815.05
7.3.330.0050.00013.26
7.3.320.0060.00013.44
7.3.310.0030.00316.22
7.3.300.0000.00616.39
7.3.290.0000.01416.35
7.3.280.0120.00316.32
7.3.260.0090.00916.46
7.3.240.0090.00916.53
7.3.230.0100.00716.63
7.3.210.0070.01016.45
7.3.200.0030.01416.64
7.3.190.0090.00916.57
7.3.180.0070.01016.32
7.3.170.0030.01316.47
7.3.160.0040.01116.32
7.3.120.0080.00814.95
7.3.110.0070.01314.75
7.3.100.0070.00714.52
7.3.90.0090.00615.04
7.3.80.0100.00314.77
7.3.70.0080.00414.74
7.3.60.0030.00514.44
7.3.50.0030.00914.75
7.3.40.0090.00414.72
7.3.30.0090.00214.86
7.3.20.0040.00816.58
7.3.10.0080.00516.39
7.3.00.0040.01416.52
7.2.330.0030.01516.71
7.2.320.0050.01416.34
7.2.310.0090.01616.45
7.2.300.0090.00916.43
7.2.290.0030.01316.67
7.2.250.0030.01915.02
7.2.240.0090.01314.89
7.2.230.0100.00615.18
7.2.220.0090.00615.04
7.2.210.0110.00014.69
7.2.200.0030.01014.86
7.2.190.0000.01514.96
7.2.180.0040.00714.92
7.2.170.0070.01014.80
7.2.160.0070.00415.15
7.2.150.0040.00716.64
7.2.140.0070.00316.88
7.2.130.0050.00816.67
7.2.120.0050.01116.71
7.2.110.0140.00716.86
7.2.100.0070.00716.64
7.2.90.0080.00416.74
7.2.80.0070.00716.69
7.2.70.0110.00016.63
7.2.60.0030.01216.82
7.2.50.0070.01516.83
7.2.40.0140.00716.82
7.2.30.0200.00316.86
7.2.20.0060.01516.59
7.2.10.0120.00316.83
7.2.00.0120.00616.63
7.1.330.0080.00415.54
7.1.320.0060.00615.46
7.1.310.0090.00315.68
7.1.300.0040.00715.57
7.1.290.0080.00815.74
7.1.280.0000.01015.64
7.1.270.0050.00715.49
7.1.260.0070.01115.83
7.1.250.0100.00915.80

preferences:
66.3 ms | 403 KiB | 5 Q