3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWorld() { yield from ['Hello', 'World']; } function genX() { yield helloWorld(); } genX();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GhZoM
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'genx'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function helloworld:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/GhZoM
function name:  helloWorld
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   GENERATOR_CREATE                                         
    4     1        YIELD_FROM                                       ~0      <array>
          2        FREE                                                     ~0
    5     3      > GENERATOR_RETURN                                         

End of function helloworld

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

End of function genx

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.88 ms | 1397 KiB | 15 Q