3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set( "America/Chicago" ); $time = strtotime( '06:00:00 PM 07/14/2014'); echo $time; $datetime = date( "H:i Y-m-d", $time); var_dump( $time);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YQdav
function name:  (null)
number of ops:  17
compiled vars:  !0 = $time, !1 = $datetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FChicago'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '06%3A00%3A00+PM+07%2F14%2F2014'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    6     7        ECHO                                                     !0
    7     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'H%3Ai+Y-m-d'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.71 ms | 1394 KiB | 21 Q