3v4l.org

run code in 500+ PHP versions simultaneously
<?php $rand = md5(random_bytes(16)); $doc = new DOMDocument("1.0"); $node = $doc->createElement("input"); $newnode = $doc->appendChild($node); $newnode->setAttribute("required", 'delete-this' . $rand); var_dump( str_replace( array('="delete-this' . $rand . '"'), array(''), $doc->saveHTML() ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WiW8m
function name:  (null)
number of ops:  35
compiled vars:  !0 = $rand, !1 = $doc, !2 = $node, !3 = $newnode
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'md5'
          1        INIT_FCALL                                                   'random_bytes'
          2        SEND_VAL                                                     16
          3        DO_ICALL                                             $4      
          4        SEND_VAR                                                     $4
          5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !0, $5
    4     7        NEW                                                  $7      'DOMDocument'
          8        SEND_VAL_EX                                                  '1.0'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !1, $7
    5    11        INIT_METHOD_CALL                                             !1, 'createElement'
         12        SEND_VAL_EX                                                  'input'
         13        DO_FCALL                                          0  $10     
         14        ASSIGN                                                       !2, $10
    6    15        INIT_METHOD_CALL                                             !1, 'appendChild'
         16        SEND_VAR_EX                                                  !2
         17        DO_FCALL                                          0  $12     
         18        ASSIGN                                                       !3, $12
    7    19        INIT_METHOD_CALL                                             !3, 'setAttribute'
         20        SEND_VAL_EX                                                  'required'
         21        CONCAT                                               ~14     'delete-this', !0
         22        SEND_VAL_EX                                                  ~14
         23        DO_FCALL                                          0          
    9    24        INIT_FCALL                                                   'var_dump'
   11    25        CONCAT                                               ~16     '%3D%22delete-this', !0
         26        CONCAT                                               ~17     ~16, '%22'
         27        INIT_ARRAY                                           ~18     ~17
   13    28        INIT_METHOD_CALL                                             !1, 'saveHTML'
         29        DO_FCALL                                          0  $19     
   10    30        FRAMELESS_ICALL_3                str_replace         ~20     ~18, <array>
   13    31        OP_DATA                                                      $19
         32        SEND_VAL                                                     ~20
    9    33        DO_ICALL                                                     
   15    34      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.93 ms | 1358 KiB | 16 Q