3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeString = '8:00 PM ET'; $time = date_create_from_format('g:i A e', $timeString); echo date_format($time, 'H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AaE36
function name:  (null)
number of ops:  12
compiled vars:  !0 = $timeString, !1 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '8%3A00+PM+ET'
    3     1        INIT_FCALL                                               'date_create_from_format'
          2        SEND_VAL                                                 'g%3Ai+A+e'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'date_format'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 'H%3Ai%3As'
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1385 KiB | 17 Q