3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x extends RecursiveRegexIterator{} $arr = new ArrayIterator([0,[1,2]]); $x = new x($arr, '/.*/'); var_dump(get_class($x->getChildren()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R7MfH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    6     4        NEW                                              $5      'x'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              '%2F.%2A%2F'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !1, 'getChildren'
         11        DO_FCALL                                      0  $8      
         12        GET_CLASS                                        ~9      $8
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class x: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.1 ms | 1394 KiB | 15 Q