3v4l.org

run code in 300+ PHP versions simultaneously
<?php $g = (fn () => print yield "foo" => "bar")(); $g->send("baz");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vhvSA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          1        INIT_DYNAMIC_CALL                                        ~1
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'send'
          5        SEND_VAL_EX                                              'baz'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1


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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.6 ms | 1006 KiB | 13 Q