3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = date("2016-01-01 22:00:00"); var_dump($d); $dst = $d->format("Y-W"); var_dump($dst);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oTgfX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $dst
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 '2016-01-01+22%3A00%3A00'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    7     7        INIT_METHOD_CALL                                         !0, 'format'
          8        SEND_VAL_EX                                              'Y-W'
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                                   !1, $5
    8    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.41 ms | 1385 KiB | 17 Q