3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 78; $token = bin2hex(random_bytes($length)); echo $token

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.0200.05320.09
7.0.10.0030.04320.09
7.0.00.0070.08020.04
5.6.170.0470.06020.38
5.6.160.0100.06720.49
5.6.150.0030.09018.11
5.6.140.0170.07018.14
5.6.130.0200.04318.09
5.6.120.0070.08321.01
5.6.110.0130.07721.00
5.6.100.0100.08320.98
5.6.90.0100.04320.97
5.6.80.0170.06320.39
5.5.310.0230.04320.32
5.5.300.0000.06318.01
5.5.290.0100.04318.01
5.5.280.0130.08720.73
5.5.270.0070.07320.95
5.5.260.0070.06320.76
5.5.250.0030.06320.53
5.5.240.0030.08020.14

preferences:
148.13 ms | 1394 KiB | 7 Q