3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Bob { function test(SplStack $stack): Iterator { return new ArrayIterator([1, 2, 3]); } test(new SplStack()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LXSno
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bob%5Ctest'
          1        NEW                                              $0      'Bob%5CSplStack'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $0
          4        DO_FCALL                                      0          
   13     5      > RETURN                                                   1

Function bob%5Ctest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LXSno
function name:  Bob\test
number of ops:  8
compiled vars:  !0 = $stack
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        NEW                                              $1      'Bob%5CArrayIterator'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        VERIFY_RETURN_TYPE                                       $1
          5      > RETURN                                                   $1
    8     6*       VERIFY_RETURN_TYPE                                       
          7*     > RETURN                                                   null

End of function bob%5Ctest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.73 ms | 1000 KiB | 14 Q