3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument('1.0'); for ($i=0; $i<=1000000; ++$i) { $root = $dom->createElement('message'); $dom->appendChild($root); $content = $dom->createElement('content'); $root->appendChild($content); $content->appendChild($dom->createTextNode('Example content baz')); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 6
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 6
Branch analysis from position: 29
Branch analysis from position: 6
filename:       /in/YTE0k
function name:  (null)
number of ops:  30
compiled vars:  !0 = $dom, !1 = $i, !2 = $root, !3 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'DOMDocument'
          1        SEND_VAL_EX                                              '1.0'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->27
    4     6    >   INIT_METHOD_CALL                                         !0, 'createElement'
          7        SEND_VAL_EX                                              'message'
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !2, $8
    5    10        INIT_METHOD_CALL                                         !0, 'appendChild'
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0          
    6    13        INIT_METHOD_CALL                                         !0, 'createElement'
         14        SEND_VAL_EX                                              'content'
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !3, $11
    7    17        INIT_METHOD_CALL                                         !2, 'appendChild'
         18        SEND_VAR_EX                                              !3
         19        DO_FCALL                                      0          
    8    20        INIT_METHOD_CALL                                         !3, 'appendChild'
         21        INIT_METHOD_CALL                                         !0, 'createTextNode'
         22        SEND_VAL_EX                                              'Example+content+baz'
         23        DO_FCALL                                      0  $14     
         24        SEND_VAR_NO_REF_EX                                       $14
         25        DO_FCALL                                      0          
    3    26        PRE_INC                                                  !1
         27    >   IS_SMALLER_OR_EQUAL                                      !1, 1000000
         28      > JMPNZ                                                    ~17, ->6
    9    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.78 ms | 1395 KiB | 13 Q