3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('m.d.y', strtotime('last Monday', strtotime('+ 28 day'))) . "\n"; echo date('m.d.y',strtotime('next Monday', strtotime('+ 28 day'))) . "\n"; echo date('m.d.y',strtotime('last Monday')) . "\n"; echo date('m.d.y',strtotime('last Monday', strtotime('last Monday'))) . "\n"; echo "\n"; echo date('m.d.y',strtotime('now - ' . intval(date('N')) . ' day'); ?>

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.90.0120.03911.99
5.4.80.0100.04611.99
5.4.70.0090.03911.99
5.4.60.0120.03911.99
5.4.50.0110.04211.98
5.4.40.0100.04311.97
5.4.30.0120.03811.97
5.4.20.0140.04411.97
5.4.10.0120.04211.97
5.4.00.0080.04111.46
5.3.190.0100.04312.68
5.3.180.0120.04112.67
5.3.170.0100.04412.67
5.3.160.0130.04112.67
5.3.150.0090.04512.67
5.3.140.0110.04012.66
5.3.130.0100.04912.66
5.3.120.0110.05012.66
5.3.110.0090.04412.66
5.3.100.0200.05312.12
5.3.90.0120.04312.08
5.3.80.0100.04012.07
5.3.70.0100.04412.07
5.3.60.0100.04112.06
5.3.50.0100.04512.00
5.3.40.0090.04212.00
5.3.30.0080.04211.94
5.3.20.0090.03911.71
5.3.10.0080.03811.67
5.3.00.0080.03911.66

preferences:
139.86 ms | 1394 KiB | 7 Q