3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo () { return ['red', 'cat']; } [$color, $animal] = foo(); var_dump("Big $color animal looked like a $animal.");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6R3aV
function name:  (null)
number of ops:  16
compiled vars:  !0 = $color, !1 = $animal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0  $2      
          2        FETCH_LIST_R                                     $3      $2, 0
          3        ASSIGN                                                   !0, $3
          4        FETCH_LIST_R                                     $5      $2, 1
          5        ASSIGN                                                   !1, $5
          6        FREE                                                     $2
    7     7        INIT_FCALL                                               'var_dump'
          8        ROPE_INIT                                     5  ~8      'Big+'
          9        ROPE_ADD                                      1  ~8      ~8, !0
         10        ROPE_ADD                                      2  ~8      ~8, '+animal+looked+like+a+'
         11        ROPE_ADD                                      3  ~8      ~8, !1
         12        ROPE_END                                      4  ~7      ~8, '.'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6R3aV
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   <array>
          1*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.66 ms | 1401 KiB | 16 Q