3v4l.org

run code in 500+ PHP versions simultaneously
<?php function a () { echo yield * 3; } $a = a(); $a->send(42);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n1sGb
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'a'
          1        DO_FCALL                                          0  $1      
          2        ASSIGN                                                       !0, $1
    8     3        INIT_METHOD_CALL                                             !0, 'send'
          4        SEND_VAL_EX                                                  42
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.84 ms | 2864 KiB | 14 Q