3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = (function () { [ ...($r = (function () { try { yield $a => 0; } finally { return []; } })()), ]; })()[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8SDGE
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
   12     1        INIT_DYNAMIC_CALL                                        ~1
          2        DO_FCALL                                      0  $2      
          3        FETCH_DIM_R                                      ~3      $2, 0
    2     4        ASSIGN                                                   !0, ~3
   12     5      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8SDGE
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
   10     1        INIT_DYNAMIC_CALL                                        ~1
          2        DO_FCALL                                      0  $2      
    4     3        ASSIGN                                           ~3      !0, $2
          4        INIT_ARRAY                                       ~4      
          5        ADD_ARRAY_UNPACK                                 ~4      ~3
          6        FREE                                                     ~4
   12     7      > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 4, Position 2 = 3
Branch analysis from position: 4
1 jumps found. (Code = 161) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/8SDGE
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   GENERATOR_CREATE                                         
    6     1        YIELD                                                    0, !0
    7     2      > FAST_CALL                                                ->4
          3    > > JMP                                                      ->7
    8     4    >   DISCARD_EXCEPTION                                        
          5      > GENERATOR_RETURN                                         
          6*       FAST_RET                                                 
   10     7    > > GENERATOR_RETURN                                         

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.54 ms | 1424 KiB | 13 Q