3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = DateTime::createFromFormat('!Y-m-d', date('Y-m-d')); echo $d['date'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WUrge
function name:  (null)
number of ops:  11
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 '%21Y-m-d'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_FCALL                                      0  $2      
          7        ASSIGN                                                   !0, $2
    4     8        FETCH_DIM_R                                      ~4      !0, 'date'
          9        ECHO                                                     ~4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1385 KiB | 15 Q