3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000, mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff) ); echo $uuid;

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.04720.19
7.0.10.0030.05320.19
7.0.00.0100.08320.16
5.6.170.0170.04320.54
5.6.160.0070.07720.44
5.6.150.0070.07018.18
5.6.140.0100.07718.18
5.6.130.0070.04718.15
5.6.120.0030.06720.89
5.6.110.0100.07720.99
5.6.100.0030.05721.13
5.6.90.0070.09020.95
5.6.80.0100.04020.46
5.5.310.0270.07720.34
5.5.300.0030.04318.07
5.5.290.0000.04318.09
5.5.280.0070.08320.80
5.5.270.0100.07020.88
5.5.260.0170.06720.96
5.5.250.0070.08020.60
5.5.240.0230.07320.07

preferences:
138.48 ms | 1394 KiB | 7 Q