3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { echo __METHOD__; yield 1; } foo(); // displays nothing, no code is executed echo 'the end'; // displays the end ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZfoVL
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'foo'
          1        DO_FCALL                                          0          
    9     2        ECHO                                                         'the+end'
   11     3      > RETURN                                                       1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.55 ms | 1468 KiB | 14 Q