3v4l.org

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

Class x: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.6 ms | 1394 KiB | 15 Q