3v4l.org

run code in 500+ PHP versions simultaneously
<?php list($a) = null; list($a) = 1; list($a) = 'a'; list($a) = 1.2; function foo() { yield 3; } // syntax error //list($a) = ...foo(); list($a) = iterator_to_array(foo()); // fatal error //list($a) = (object) ['a' => 1]; //Undefined array key 0 list($a) = [];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SkKon
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_LIST_R                                         $1      null, 0
          1        ASSIGN                                                       !0, $1
    4     2        FETCH_LIST_R                                         $3      1, 0
          3        ASSIGN                                                       !0, $3
    5     4        FETCH_LIST_R                                         $5      'a', 0
          5        ASSIGN                                                       !0, $5
    6     6        FETCH_LIST_R                                         $7      1.2, 0
          7        ASSIGN                                                       !0, $7
   11     8        INIT_FCALL                                                   'iterator_to_array'
          9        INIT_FCALL                                                   'foo'
         10        DO_FCALL                                          0  $9      
         11        SEND_VAR                                                     $9
         12        DO_ICALL                                             $10     
         13        FETCH_LIST_R                                         $11     $10, 0
         14        ASSIGN                                                       !0, $11
         15        FREE                                                         $10
   17    16        FETCH_LIST_R                                         $13     <array>, 0
         17        ASSIGN                                                       !0, $13
         18      > RETURN                                                       1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.32 ms | 893 KiB | 10 Q