3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); echo $script_tz = date_default_timezone_get()."\n"; $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/hHThD
function name:  (null)
number of ops:  18
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        CONCAT                                           ~4      $3, '%0A'
          6        ASSIGN                                           ~5      !0, ~4
          7        ECHO                                                     ~5
    5     8        ASSIGN                                                   !1, '12%3A30+am'
    6     9        INIT_FCALL                                               'gmdate'
         10        SEND_VAL                                                 'h%3Ai+a'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ECHO                                                     $8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.35 ms | 1004 KiB | 17 Q