3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace X; $iterator = new \RegexIterator( new \ArrayIterator( ['A.phpt', 'B.phpt', 'C.phpt'] ) , '/\.phpt$/' , \RegexIterator::MATCH ) ; foreach ($iterator as $foo) { var_dump($foo); pcre_study('/\.phpt$/', '', ''); } echo "Done", PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/5ckJ4
function name:  (null)
number of ops:  25
compiled vars:  !0 = $iterator, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'RegexIterator'
    7     1        NEW                                              $3      'ArrayIterator'
    8     2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $3
   11     5        SEND_VAL_EX                                              '%2F%5C.phpt%24%2F'
   13     6        SEND_VAL_EX                                              0
          7        DO_FCALL                                      0          
    5     8        ASSIGN                                                   !0, $2
   17     9      > FE_RESET_R                                       $7      !0, ->20
         10    > > FE_FETCH_R                                               $7, !1, ->20
   18    11    >   INIT_NS_FCALL_BY_NAME                                    'X%5Cvar_dump'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
   19    14        INIT_NS_FCALL_BY_NAME                                    'X%5Cpcre_study'
         15        SEND_VAL_EX                                              '%2F%5C.phpt%24%2F'
         16        SEND_VAL_EX                                              ''
         17        SEND_VAL_EX                                              ''
         18        DO_FCALL                                      0          
   17    19      > JMP                                                      ->10
         20    >   FE_FREE                                                  $7
   22    21        ECHO                                                     'Done'
         22        FETCH_CONSTANT                                   ~10     'X%5CPHP_EOL'
         23        ECHO                                                     ~10
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.74 ms | 943 KiB | 17 Q