3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new \ArrayIterator(array("foo", "bar", "baz")); $it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::INVERT_MATCH); print_r(iterator_to_array($it2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UfgrY
function name:  (null)
number of ops:  18
compiled vars:  !0 = $it, !1 = $it2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        NEW                                              $5      'RegexIterator'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              '%2F%5Eba%2F'
          7        SEND_VAL_EX                                              0
          8        SEND_VAL_EX                                              2
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $5
    4    11        INIT_FCALL                                               'print_r'
         12        INIT_FCALL                                               'iterator_to_array'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1386 KiB | 17 Q