3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = function() :string { return 'this is test' . PHP_EOL;}; class Def { private $str; public function __construct(string $str){ $this->str = $str; } public function __invoke() { return $this->str . PHP_EOL; } } function foo (callable $c = new Def('this is default')){ echo $c(); } foo(); foo($test);

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.4.120.0130.00720.59
8.4.110.0110.01122.36
8.4.100.0100.01017.83
8.4.90.0140.00717.86
8.4.80.0060.00317.59
8.4.70.0090.00817.75
8.4.60.0100.01118.59
8.4.50.0090.01017.75
8.4.40.0110.01117.43
8.4.30.0090.00918.63
8.4.20.0070.01518.75
8.4.10.0130.00619.23
8.3.250.0110.00818.93
8.3.240.0110.00816.79
8.3.230.0080.01216.58
8.3.220.0110.00717.27
8.3.210.0080.00716.85
8.3.200.0030.00616.63
8.3.190.0040.01617.29
8.3.180.0040.00317.11
8.3.170.0050.00518.98
8.3.160.0140.00417.34
8.3.150.0120.00917.29
8.3.140.0090.00016.70
8.3.130.0030.00616.88
8.3.120.0030.00619.18
8.3.110.0130.00618.48
8.3.100.0040.00418.50
8.3.50.0080.00018.43
8.3.00.0140.00728.09
8.2.290.0060.00520.47
8.2.280.0080.01018.61
8.2.270.0150.00018.84
8.2.260.0110.00818.34
8.2.250.0040.01516.65
8.2.240.0090.00919.19
8.2.230.0030.00618.26
8.2.220.0120.00616.84
8.2.130.0100.01028.09
8.2.120.0150.00628.09
8.2.110.0030.00728.09
8.2.100.0060.00628.09
8.2.90.0080.00328.09
8.2.80.0060.00628.09
8.2.70.0060.00628.09
8.2.60.0090.00028.09
8.2.50.0090.00028.09
8.2.40.0070.00328.09
8.2.30.0060.00328.09
8.2.20.0040.00428.09
8.2.10.0080.00028.09
8.2.00.0000.00828.09
8.1.330.0100.00821.86
8.1.320.0110.00916.09
8.1.310.0000.00816.60
8.1.300.0110.00418.29
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00328.09
8.1.230.0030.00628.09
8.1.220.0060.00328.09
8.1.210.0050.00328.09
8.1.200.0060.00328.09
8.1.190.0030.00628.09
8.1.180.0030.00628.09
8.1.170.0060.00328.09
8.1.160.0090.00028.09
8.1.150.0060.00328.09
8.1.140.0080.00028.09
8.1.130.0030.00628.09
8.1.120.0040.00428.09
8.1.110.0060.00328.09
8.1.100.0060.00328.09
8.1.90.0040.00428.09
8.1.80.0040.00428.09
8.1.70.0080.00028.09
8.1.60.0040.00428.09
8.1.50.0060.00328.09
8.1.40.0000.00828.09
8.1.30.0060.00328.09
8.1.20.0030.00528.09
8.1.10.0030.00628.09
8.1.00.0090.00028.09

preferences:
26.89 ms | 403 KiB | 5 Q