3v4l.org

run code in 500+ PHP versions simultaneously
<?php function froma($a){ return $a; } function foo(){ yield froma('foo'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2MvM
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 froma:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2MvM
function name:  froma
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 froma

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/S2MvM
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                                                   'froma'
          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:
161.09 ms | 1959 KiB | 9 Q