3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { $ret = [ "foo" => "bar", "bar" => "baz", "baz" => "qux" ]; $ret['bar'] = 2; return $ret; } list($foo, $bar, $baz) = test(); var_dump($foo, $bar, $baz);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qhKMl
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $3      
          2        FETCH_LIST_R                                     $4      $3, 0
          3        ASSIGN                                                   !0, $4
          4        FETCH_LIST_R                                     $6      $3, 1
          5        ASSIGN                                                   !1, $6
          6        FETCH_LIST_R                                     $8      $3, 2
          7        ASSIGN                                                   !2, $8
          8        FREE                                                     $3
   15     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qhKMl
function name:  test
number of ops:  5
compiled vars:  !0 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN_DIM                                               !0, 'bar'
          2        OP_DATA                                                  2
   11     3      > RETURN                                                   !0
   12     4*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.45 ms | 1397 KiB | 16 Q