3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_EOL') define(PHP_EOL, "\r\n"); print date('Y-m-d', strtotime('next thursday')); print PHP_EOL; print_r(new DateTime('next thursday'));

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.240.0130.03912.38
5.4.230.0130.04612.37
5.4.220.0210.06012.37
5.4.210.0140.04812.37
5.4.200.0140.04612.37
5.4.190.0160.04212.37
5.4.180.0140.04212.37
5.4.170.0200.05412.38
5.4.160.0130.04312.37
5.4.150.0140.04112.37
5.4.140.0140.04812.06
5.4.130.0190.05412.04
5.4.120.0160.04512.00
5.4.110.0130.04112.00
5.4.100.0160.04512.00
5.4.90.0200.04512.00
5.4.80.0140.04912.00
5.4.70.0150.04612.00
5.4.60.0190.04812.00
5.4.50.0200.05612.00
5.4.40.0140.04911.98
5.4.30.0150.04711.98
5.4.20.0170.04311.97
5.4.10.0160.04411.98
5.4.00.0120.04611.47
5.3.280.0230.05612.71
5.3.270.0150.05012.72
5.3.260.0200.05712.72
5.3.250.0160.03912.72
5.3.240.0130.04712.72
5.3.230.0130.04412.71
5.3.220.0150.04512.68
5.3.210.0140.04512.68
5.3.200.0250.06512.68
5.3.190.0160.04912.68
5.3.180.0160.06312.67
5.3.170.0160.04612.67
5.3.160.0180.04412.67
5.3.150.0160.04912.68
5.3.140.0140.05012.66
5.3.130.0230.05912.66
5.3.120.0140.04812.66
5.3.110.0190.06012.66
5.3.100.0130.04512.12
5.3.90.0130.04112.08
5.3.80.0130.04712.08
5.3.70.0140.04912.07
5.3.60.0190.08612.06
5.3.50.0100.05412.00
5.3.40.0120.05312.00
5.3.30.0180.05211.95
5.3.20.0190.04711.71
5.3.10.0120.04911.68
5.3.00.0140.04711.66

preferences:
141.04 ms | 1394 KiB | 7 Q