3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DomDocument('1.0',"utf-8"); $root = $doc->createElement('Products'); $root->setAttribute('TimeStamp', date_format($tstamp, 'Y-m-d H:i:s')); $root = $doc->appendChild($root);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ntWc0
function name:  (null)
number of ops:  22
compiled vars:  !0 = $doc, !1 = $root, !2 = $tstamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DomDocument'
          1        SEND_VAL_EX                                              '1.0'
          2        SEND_VAL_EX                                              'utf-8'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    3     5        INIT_METHOD_CALL                                         !0, 'createElement'
          6        SEND_VAL_EX                                              'Products'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !1, $6
    4     9        INIT_METHOD_CALL                                         !1, 'setAttribute'
         10        SEND_VAL_EX                                              'TimeStamp'
         11        INIT_FCALL                                               'date_format'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        DO_ICALL                                         $8      
         15        SEND_VAR_NO_REF_EX                                       $8
         16        DO_FCALL                                      0          
    5    17        INIT_METHOD_CALL                                         !0, 'appendChild'
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $10     
         20        ASSIGN                                                   !1, $10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1395 KiB | 15 Q