3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'); $serial = ''; $max = count($chars)-1; for($j=0;$j<5000;$j++){ for($i=0;$i<12;$i++){ $serial .= (!($i % 3) && $i ? '-' : '').$chars[rand(0, $max)]; } echo $serial.PHP_EOL; $serial = ''; }

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.3.10.0080.01216.77
7.3.00.0060.01216.55
7.2.130.0030.01716.62
7.2.120.0100.01316.70
7.2.110.0120.00916.96
7.2.100.0100.00616.81
7.2.90.0100.01016.76
7.2.80.0030.01717.00
7.2.70.0070.01316.72
7.2.60.0120.00616.89
7.2.50.0070.01117.02
7.2.40.0060.01517.01
7.2.30.0070.01416.67
7.2.20.0170.00716.85
7.2.10.0120.00616.84
7.2.00.0070.01217.90
7.1.250.0110.01515.48
7.1.70.0100.01017.21
7.1.60.0200.02019.46
7.1.50.0100.02916.84
7.0.200.0060.00916.82

preferences:
33.91 ms | 401 KiB | 5 Q