3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Chongqing'); $time1 = "2006-04-16 08:40:54"; $time2 = strtotime($time1); echo $time2; echo date('Y-m-d h:i:s',$time2)."\n"; echo date('Y',$time2)."\n"; echo int(date('m',$time2))."\n"; echo date('d',$time2)."\n";
Output for git.master, git.master_jit, rfc.property-hooks
11451480542006-04-16 08:40:54 2006 Fatal error: Uncaught Error: Call to undefined function int() in /in/58ibn:8 Stack trace: #0 {main} thrown in /in/58ibn on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.39 ms | 401 KiB | 8 Q