3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<10; ++$i) { $reader = new XMLReader(); $reader->xml('<?xml version="1.0" encoding="utf-8"?><id>1234567890</id>'); while ($reader->read()) { $reader->expand(); } echo memory_get_peak_usage(true) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
Branch analysis from position: 2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/sbLV2
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i, !1 = $reader
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->20
    3     2    >   NEW                                              $3      'XMLReader'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    4     5        INIT_METHOD_CALL                                         !1, 'xml'
          6        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%3Cid%3E1234567890%3C%2Fid%3E'
          7        DO_FCALL                                      0          
    5     8      > JMP                                                      ->11
    6     9    >   INIT_METHOD_CALL                                         !1, 'expand'
         10        DO_FCALL                                      0          
    5    11    >   INIT_METHOD_CALL                                         !1, 'read'
         12        DO_FCALL                                      0  $8      
         13      > JMPNZ                                                    $8, ->9
    9    14    >   INIT_FCALL                                               'memory_get_peak_usage'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $9      
         17        CONCAT                                           ~10     $9, '%0A'
         18        ECHO                                                     ~10
    2    19        PRE_INC                                                  !0
         20    >   IS_SMALLER                                               !0, 10
         21      > JMPNZ                                                    ~12, ->2
   10    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.88 ms | 1395 KiB | 15 Q