3v4l.org

run code in 300+ PHP versions simultaneously
<?php // declare(strict_types=1); namespace Test\Biz; //error_reporting(-1); class Foo { public function bar($value) { if (\is_callable($value)) { return $this->baz($value); } } public function baz(callable $callable) { return $callable; } } function demonstrate2(callable $callable) { return $callable; } echo (new Foo())->bar('\Test\Biz\Foo::bar'); demonstrate2('\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.0080.01218.35
8.3.120.0030.00619.10
8.3.110.0000.00920.94
8.3.100.0030.00616.62
8.3.90.0040.00426.77
8.3.80.0030.00616.75
8.3.70.0120.00316.88
8.3.60.0030.01418.30
8.3.50.0080.01016.68
8.3.40.0030.01218.83
8.3.30.0120.00318.84
8.3.20.0070.00020.86
8.3.10.0060.00318.95
8.3.00.0040.00421.95
8.2.250.0040.00418.48
8.2.240.0040.00416.38
8.2.230.0060.00322.58
8.2.220.0030.01024.06
8.2.210.0110.00726.77
8.2.200.0060.00316.63
8.2.190.0170.00018.41
8.2.180.0040.01125.92
8.2.170.0110.01118.98
8.2.160.0100.00720.39
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00826.16
8.2.110.0060.00322.21
8.2.100.0040.00817.84
8.2.90.0030.00517.88
8.2.80.0080.00017.97
8.2.70.0030.00617.80
8.2.60.0040.00418.09
8.2.50.0030.00518.10
8.2.40.0060.00321.03
8.2.30.0000.00819.25
8.2.20.0040.00418.00
8.2.10.0000.00718.90
8.2.00.0000.00719.38
8.1.300.0090.00618.08
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0000.00821.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0080.00418.95
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0040.00416.98
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0040.00418.59
8.1.160.0030.00618.69
8.1.150.0070.00018.78
8.1.140.0000.00718.65
8.1.130.0000.00719.95
8.1.120.0030.00417.26
8.1.110.0040.00417.37
8.1.100.0040.00417.20
8.1.90.0070.00017.32
8.1.80.0030.00517.25
8.1.70.0030.00317.37
8.1.60.0000.01117.46
8.1.50.0000.00817.36
8.1.40.0000.00917.36
8.1.30.0050.00317.65
8.1.20.0000.00817.55
8.1.10.0040.00417.43
8.1.00.0050.00317.50
8.0.300.0040.00419.64
8.0.290.0000.00916.88
8.0.280.0000.00718.40
8.0.270.0070.00017.18
8.0.260.0000.00718.52
8.0.250.0000.00716.95
8.0.240.0040.00417.07
8.0.230.0040.00416.82
8.0.220.0070.00316.79
8.0.210.0000.00716.86
8.0.200.0030.00316.98
8.0.190.0000.00716.95
8.0.180.0000.00816.90
8.0.170.0080.00016.94
8.0.160.0050.00316.77
8.0.150.0040.00416.86
8.0.140.0040.00416.83
8.0.130.0030.00313.37
8.0.120.0040.00416.86
8.0.110.0040.00416.79
8.0.100.0040.00416.93
8.0.90.0000.00716.79
8.0.80.0120.00916.86
8.0.70.0040.00417.02
8.0.60.0050.00316.88
8.0.50.0040.00416.72
8.0.30.0090.01117.29
8.0.20.0090.01017.08
8.0.10.0000.00716.84
8.0.00.0120.00616.62
7.4.330.0030.00315.55
7.4.320.0000.00616.43
7.4.300.0030.00316.31
7.4.290.0000.00716.52
7.4.280.0050.00316.48
7.4.270.0040.00416.59
7.4.260.0040.00416.52
7.4.250.0000.00716.51
7.4.240.0060.00316.49
7.4.230.0000.00716.25
7.4.220.0050.00316.43
7.4.210.0090.00716.47
7.4.200.0000.00816.64
7.4.160.0120.00616.45
7.4.140.0140.00317.86
7.4.130.0130.00716.45
7.4.120.0070.01016.48
7.4.110.0140.00616.46
7.4.100.0120.00616.44
7.4.90.0060.01216.50
7.4.80.0130.00319.39
7.4.70.0060.01216.45
7.4.60.0070.01016.41
7.4.50.0030.01416.54
7.4.40.0140.00416.52
7.4.00.0060.00914.88
7.3.330.0040.00413.30
7.3.320.0000.00613.37
7.3.310.0030.00316.22
7.3.300.0030.00316.37
7.3.290.0000.00716.20
7.3.280.0080.00716.34
7.3.260.0090.00816.34
7.3.240.0080.01016.41
7.3.230.0100.00716.39
7.3.210.0140.00916.66
7.3.200.0090.00916.37
7.3.190.0140.01016.29
7.3.180.0100.01016.32
7.3.170.0090.00616.40
7.3.160.0060.01016.39
7.3.120.0110.00714.98
7.3.110.0040.01414.92
7.3.100.0030.01314.91
7.3.90.0120.00614.80
7.3.80.0090.00914.86
7.3.70.0030.01314.75
7.3.60.0060.00614.72
7.3.50.0140.00614.76
7.3.40.0050.00914.83
7.3.30.0070.00714.65
7.3.20.0160.00216.71
7.3.10.0060.00516.77
7.3.00.0060.00816.67
7.2.330.0100.01016.45
7.2.320.0100.01016.52
7.2.310.0060.01016.28
7.2.300.0140.00316.68
7.2.290.0110.00616.40
7.2.250.0030.01614.87
7.2.240.0100.00714.67
7.2.230.0000.01415.00
7.2.220.0070.00715.09
7.2.210.0030.01314.98
7.2.200.0030.00715.13
7.2.190.0100.00314.91
7.2.180.0070.00714.95
7.2.170.0090.00714.72
7.2.160.0180.00414.74
7.2.150.0120.00016.67
7.2.140.0040.00716.48
7.2.130.0160.01016.71
7.2.120.0000.01516.70
7.2.110.0040.01116.50
7.2.100.0040.00816.84
7.2.90.0000.01116.58
7.2.80.0110.00716.62
7.2.70.0100.00316.72
7.2.60.0030.01016.71
7.2.50.0090.00616.79
7.2.40.0140.00016.54
7.2.30.0030.01316.95
7.2.20.0090.00316.93
7.2.10.0000.01416.72
7.2.00.0070.00816.94
7.1.330.0030.01015.83
7.1.320.0050.00515.84
7.1.310.0040.01515.62
7.1.300.0030.01015.57
7.1.290.0030.01415.86
7.1.280.0120.00615.63
7.1.270.0050.00815.72
7.1.260.0070.00615.83
7.1.250.0040.00915.96

preferences:
62.58 ms | 403 KiB | 5 Q