3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function number() { yield [1, 2]; } var_dump(number(), number());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Dt7H
function name:  (null)
number of ops:  10
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        INIT_FCALL                                               'var_dump'
         2        INIT_FCALL                                               'number'
         3        DO_FCALL                                      0  $0      
         4        SEND_VAR                                                 $0
         5        INIT_FCALL                                               'number'
         6        DO_FCALL                                      0  $1      
         7        SEND_VAR                                                 $1
         8        DO_ICALL                                                 
         9      > RETURN                                                   1

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

End of function number

Generated using Vulcan Logic Dumper, using php 7.3.0