3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "39b7d32fcb743c244c569a56d6de4dc27577d6277d6cf155bdcba6d05befcb34"; $lotto = "0422262831"; $round_id = i; i = x+1; $hash = hash("sha256",$server_seed."-".$lotto."-".$round_id); $roll = hexdec(substr($hash,0,8)) % 15; echo "Round $round_id = $roll";

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.20.0170.04020.19
7.0.10.0100.08020.17
7.0.00.0070.07020.07
5.6.170.0330.07020.46
5.6.160.0170.07720.45
5.6.150.0030.08718.25
5.6.140.0100.06018.16
5.6.130.0070.05018.15
5.6.120.0030.07021.03
5.6.110.0100.04021.11
5.6.100.0070.05321.13
5.6.90.0000.04321.13
5.6.80.0130.07320.28
5.5.310.0070.05320.34
5.5.300.0130.06717.98
5.5.290.0100.07017.95
5.5.280.0070.05020.79
5.5.270.0070.08020.86
5.5.260.0070.07020.85
5.5.250.0100.06320.66
5.5.240.0100.07320.27

preferences:
142.14 ms | 1394 KiB | 7 Q