3v4l.org

run code in 300+ PHP versions simultaneously
<?php function osszeadas(int $a, int $b): int { return $a+$b; } for(int $i=0;$i<=10000;$i++) { osszeadas($i, $i*2); }

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.10.0130.06320.19
7.0.00.0030.07720.09
5.6.160.0030.08020.54
5.6.150.0030.04318.18
5.6.140.0070.06018.15
5.6.130.0030.04018.23
5.6.120.0100.08021.03
5.6.110.0030.08720.89
5.6.100.0100.05021.00
5.6.90.0070.04020.95
5.6.80.0030.05020.38
5.5.300.0100.08017.98
5.5.290.0030.08717.95
5.5.280.0070.08320.65
5.5.270.0100.07720.84
5.5.260.0030.04320.96
5.5.250.0030.08320.68
5.5.240.0100.03720.04

preferences:
140.84 ms | 1394 KiB | 7 Q