3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); echo $script_tz = date_default_timezone_get(); $ny_time = "12:30 am"; echo gmdate('h:i a',strtotime($ny_time));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJaSh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $script_tz, !1 = $ny_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FNew_York'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date_default_timezone_get'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                           ~4      !0, $3
          6        ECHO                                                     ~4
    5     7        ASSIGN                                                   !1, '12%3A30+am'
    6     8        INIT_FCALL                                               'gmdate'
          9        SEND_VAL                                                 'h%3Ai+a'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ECHO                                                     $7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.53 ms | 1394 KiB | 21 Q