3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = Dom\HTMLDocument::createFromString("<svg width=\"1\">"); $el = $dom->getElementsByTagName('svg')[0]; $attribute = $el->attributes->item(0); $rm = new ReflectionMethod($attribute, "__construct"); $rm->invoke($attribute);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNfoU
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dom, !1 = $el, !2 = $attribute, !3 = $rm
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                      'Dom%5CHTMLDocument', 'createFromString'
          1        SEND_VAL                                                     '%3Csvg+width%3D%221%22%3E'
          2        DO_FCALL                                          0  $4      
          3        ASSIGN                                                       !0, $4
    3     4        INIT_METHOD_CALL                                             !0, 'getElementsByTagName'
          5        SEND_VAL_EX                                                  'svg'
          6        DO_FCALL                                          0  $6      
          7        FETCH_DIM_R                                          ~7      $6, 0
          8        ASSIGN                                                       !1, ~7
    4     9        FETCH_OBJ_R                                          ~9      !1, 'attributes'
         10        INIT_METHOD_CALL                                             ~9, 'item'
         11        SEND_VAL_EX                                                  0
         12        DO_FCALL                                          0  $10     
         13        ASSIGN                                                       !2, $10
    5    14        NEW                                                  $12     'ReflectionMethod'
         15        SEND_VAR_EX                                                  !2
         16        SEND_VAL_EX                                                  '__construct'
         17        DO_FCALL                                          0          
         18        ASSIGN                                                       !3, $12
    6    19        INIT_METHOD_CALL                                             !3, 'invoke'
         20        SEND_VAR_EX                                                  !2
         21        DO_FCALL                                          0          
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
124.81 ms | 474 KiB | 7 Q