3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = Datetime::createFromFormat("Y-m-d", "2017-07-30"); $tmp = clone $d1; var_dump($tmp->format('D'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5qtbQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $d1, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'Datetime', 'createFromFormat'
          1        SEND_VAL                                                 'Y-m-d'
          2        SEND_VAL                                                 '2017-07-30'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    4     5        CLONE                                            ~4      !0
          6        ASSIGN                                                   !1, ~4
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'format'
          9        SEND_VAL_EX                                              'D'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1394 KiB | 15 Q