3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $fn): void { // do something with $fn, call it maybe $fn(); } foo(static function (): void { echo 'hello world'; });

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.5.00.0200.00717.37
8.4.150.0270.00919.58
8.4.140.0350.00817.49
8.4.130.0370.00717.58
8.4.120.0330.00717.93
8.4.110.0380.00817.79
8.4.100.0370.00817.75
8.4.90.0390.00717.73
8.4.80.0370.00917.75
8.4.70.0380.00817.74
8.4.60.0360.00917.71
8.4.50.0370.00917.66
8.4.40.0400.00817.42
8.4.30.0390.00917.46
8.4.20.0410.00817.50
8.4.10.0400.00817.51
8.3.280.0310.00818.26
8.3.270.0350.00917.37
8.3.260.0350.00917.37
8.3.250.0360.00817.37
8.3.240.0360.00717.37
8.3.230.0340.00817.37
8.3.220.0340.00817.37
8.3.210.0360.00817.37
8.3.200.0360.00817.37
8.3.190.0340.00817.37
8.3.180.0350.00817.37
8.3.170.0370.00817.37
8.3.160.0380.00817.37
8.3.150.0380.00817.37
8.3.140.0370.00817.37
8.3.130.0340.00817.37
8.3.120.0330.00817.37
8.3.110.0320.00917.37
8.3.100.0380.00917.37
8.3.90.0390.00817.37
8.3.80.0390.00917.37
8.3.70.0380.00917.37
8.3.60.0370.00917.37
8.3.50.0380.00817.37
8.3.40.0360.00917.79
8.3.30.0290.00817.81
8.3.20.0280.00917.80
8.3.10.0290.00817.76
8.3.00.0250.00817.87
8.2.290.0280.00917.37
8.2.280.0290.00917.37
8.2.270.0310.00817.37

preferences:
33.74 ms | 403 KiB | 5 Q