3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myvar = 'a:6:{s:6:"J_ID.1";s:11:"02003050020";s:9:"J_Score.1";s:0:"";s:10:"J_Status.1";s:1:"I";s:6:"J_ID.2";s:11:"02003050111";s:9:"J_Score.2";s:0:"";s:10:"J_Status.2";s:1:"N";}'; $dateFormat = 'Y-m-d (D), H:i:s'; $myTime = date_create('1450463036'); echo "\n" . $myTime->format("%H:%I:%S"); echo "\n" . date($dateFormat, $myTime); echo "\n\n" . print_r(unserialize($myvar),true) ;
Output for git.master, git.master_jit, rfc.property-hooks
%14:%0:%st Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, DateTime given in /in/LJ1iG:9 Stack trace: #0 /in/LJ1iG(9): date('Y-m-d (D), H:i:...', Object(DateTime)) #1 {main} thrown in /in/LJ1iG on line 9
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:
40.61 ms | 401 KiB | 8 Q