3v4l.org

run code in 300+ PHP versions simultaneously
<?php $next month=mktime(0,0,0,date(“m”)+1,date(“d”),date(“y”)); echo “Next month is”.date(“d/m/y”,$next month);//it prints next month with today’s date ?>

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.170.0100.04112.36
5.4.160.0130.04112.36
5.4.150.0170.05812.35
5.4.140.0120.04112.05
5.4.130.0120.05012.02
5.4.120.0110.03912.00
5.4.110.0150.05811.99
5.4.100.0120.04111.99
5.4.90.0170.06511.99
5.4.80.0120.04011.99
5.4.70.0090.04111.99
5.4.60.0140.03911.98
5.4.50.0110.04111.98
5.4.40.0110.06211.97
5.4.30.0110.04211.97
5.4.20.0110.04211.97
5.4.10.0130.03911.97
5.4.00.0110.04011.46
5.3.260.0140.04112.72
5.3.250.0130.03912.72
5.3.240.0120.04112.72
5.3.230.0140.04212.71
5.3.220.0140.04312.68
5.3.210.0120.04212.68
5.3.200.0100.04312.68
5.3.190.0170.05712.68
5.3.180.0140.03912.67
5.3.170.0210.05212.67
5.3.160.0120.04112.67
5.3.150.0150.04812.67
5.3.140.0120.04112.66
5.3.130.0130.04112.66
5.3.120.0120.04112.66
5.3.110.0150.03912.66
5.3.100.0120.04212.12
5.3.90.0130.03912.08
5.3.80.0180.05412.08
5.3.70.0120.04012.08
5.3.60.0120.04012.06
5.3.50.0090.04312.00
5.3.40.0140.05812.00

preferences:
147.21 ms | 1394 KiB | 7 Q