3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GenerateKey(string $input): string { echo $generated = substr(strtoupper(md5($input) . uniqid()), -24) . "\n"; echo wordwrap($generated, 4, '-', true) . "\n"; return preg_replace('/.{4}\K(?!$)/', '-', $generated); } echo GenerateKey('foooobar');

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)
8.2.100.0260.00918.44
8.2.90.0220.00918.44
8.2.80.0280.00518.44
8.2.70.0280.00318.44
8.2.60.0260.00618.44
8.2.50.0220.00918.44
8.2.40.0230.00518.44
8.2.30.0190.00918.44
8.2.20.0240.00318.44
8.2.10.0250.00318.44
8.2.00.0180.00918.44
8.1.230.0230.00518.44
8.1.220.0180.01118.44
8.1.210.0230.00318.44
8.1.200.0220.00618.44
8.1.190.0260.00218.44
8.1.180.0250.00218.44
8.1.170.0220.00818.44
8.1.160.0260.00418.44
8.1.150.0230.00718.44
8.1.140.0220.00618.44
8.1.130.0220.00518.44
8.1.120.0280.00518.44
8.1.110.0160.01118.44
8.1.100.0230.00418.44
8.1.90.0220.00518.44
8.1.80.0210.00718.44
8.1.70.0230.00418.44
8.1.60.0250.00318.44
8.1.50.0260.00518.44
8.1.40.0220.00518.44
8.1.30.0220.00618.44
8.1.20.0200.01018.44
8.1.10.0200.00718.44
8.1.00.0170.00718.44
8.0.300.0220.00618.44
8.0.290.0260.00318.44
8.0.280.0190.00918.44
8.0.270.0250.00418.44
8.0.260.0190.00818.44
8.0.250.0220.00418.44
8.0.240.0220.00518.44
8.0.230.0240.00418.44
8.0.220.0240.00318.44
8.0.210.0260.00218.44
8.0.200.0250.00118.44
8.0.190.0260.00218.44
8.0.180.0220.00518.44
8.0.170.0200.00718.44
8.0.160.0280.00318.44
8.0.150.0230.00518.44
8.0.140.0260.00518.44
8.0.130.0270.00118.44
8.0.120.0260.00418.44
8.0.110.0280.00418.44
8.0.100.0200.00718.44
8.0.90.0210.00618.44
8.0.80.0210.00618.44
8.0.70.0200.00818.44
8.0.60.0240.00318.44
8.0.50.0240.00318.44
8.0.30.0180.00918.44
8.0.20.0220.00618.44
8.0.10.0230.00318.44

preferences:
45.19 ms | 762 KiB | 5 Q