3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = 'Y-m-d\TH:i:sO'; $timeString = '2018-09-04T16:15:55+0200'; $parsedTime = date_parse_from_format($format, $timeString); var_dump($parsedTime['zone']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4gtdS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $format, !1 = $timeString, !2 = $parsedTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Y-m-d%5CTH%3Ai%3AsO'
    4     1        ASSIGN                                                   !1, '2018-09-04T16%3A15%3A55%2B0200'
    5     2        INIT_FCALL                                               'date_parse_from_format'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        INIT_FCALL                                               'var_dump'
          8        FETCH_DIM_R                                      ~7      !2, 'zone'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.87 ms | 1398 KiB | 17 Q