3v4l.org

run code in 500+ PHP versions simultaneously
<?php function from1($a){ return $a; } function foo(){ yield from1('foo'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EXjKc
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       1

Function from1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EXjKc
function name:  from1
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
    3     1      > RETURN                                                       !0
    4     2*     > RETURN                                                       null

End of function from1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/EXjKc
function name:  foo
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   GENERATOR_CREATE                                             
    6     1        INIT_FCALL                                                   'from1'
          2        SEND_VAL                                                     'foo'
          3        DO_FCALL                                          0  $0      
          4        YIELD                                                        $0
    7     5      > GENERATOR_RETURN                                             

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.16 ms | 1433 KiB | 9 Q