3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ceil300($time,$const) { // function returns timestamp rounded to next 300 seconds ( 5 minutes ) + const if ($time % 300 == 0) return $time + $const; return $time + (300 - ($time % 300)) + $const; } $time = time(); $const = 210; // 210 seconds = 3:30 // getting actual time and constant $act_time = md5(ceil300($time,210)); $lst_time = md5(ceil300($time-300,210)); echo $act_time \n; echo $lst_time;

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)
5.4.100.0100.04512.02
5.4.90.0100.04312.02
5.4.80.0140.05012.02
5.4.70.0160.04712.02
5.4.60.0130.04112.02
5.4.50.0110.04112.02
5.4.40.0110.04012.00
5.4.30.0100.04112.00
5.4.20.0090.04412.00
5.4.10.0100.04312.00
5.4.00.0100.04311.50
5.3.200.0110.04312.68
5.3.190.0110.04612.67
5.3.180.0090.04612.67
5.3.170.0090.04512.67
5.3.160.0100.04412.67
5.3.150.0160.05112.67
5.3.140.0060.05012.66
5.3.130.0140.04312.66
5.3.120.0090.05012.66
5.3.110.0120.04812.66
5.3.100.0110.06712.12
5.3.90.0120.04412.10
5.3.80.0110.04412.09
5.3.70.0090.04712.09
5.3.60.0110.04612.08
5.3.50.0110.06412.02
5.3.40.0080.04612.02
5.3.30.0110.04611.98
5.3.20.0110.04411.76
5.3.10.0150.05911.73
5.3.00.0100.04511.71

preferences:
141.09 ms | 1394 KiB | 7 Q