3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { yield from []; } function b() { if(false) yield; } function c() { false && yield; } function d() { true || yield; } function e() { return; yield; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DpcJX
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/DpcJX
function name:  a
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 a

Function b:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 161) Position 1 = -2
Branch analysis from position: 3
filename:       /in/DpcJX
function name:  b
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   GENERATOR_CREATE                                         
    7     1      > JMPZ                                                     <false>, ->3
          2    >   YIELD                                                    
    8     3    > > GENERATOR_RETURN                                         

End of function b

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/DpcJX
function name:  c
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   GENERATOR_CREATE                                         
   11     1      > GENERATOR_RETURN                                         

End of function c

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/DpcJX
function name:  d
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   GENERATOR_CREATE                                         
   14     1      > GENERATOR_RETURN                                         

End of function d

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

End of function e

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.91 ms | 996 KiB | 13 Q