3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_1(int $arg_1, int $arg_2): int{ return $arg_1+$arg_2; } int $a = 1; int $b = 2; $result = test_1($a, $b); echo $result;

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)
7.0.00.0030.04320.10
5.6.160.0000.04320.57
5.6.150.0070.08718.19
5.6.140.0030.08718.28
5.6.130.0030.05018.25
5.6.120.0070.08320.96
5.6.110.0030.04720.91
5.6.100.0130.08321.02
5.6.90.0100.08020.95
5.6.80.0130.08020.52
5.5.300.0100.04717.98
5.5.290.0030.08718.08
5.5.280.0100.07720.87
5.5.270.0200.04320.86
5.5.260.0130.04020.86
5.5.250.0070.08020.66
5.5.240.0230.04020.36

preferences:
140.5 ms | 1398 KiB | 7 Q