3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func($a, $b) { $c = 'awdawda'; $b += 7; return array($c, $b); } $a = ''; $b = 0; list($a, $b) = func(5,2); echo $a . ' ' . $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f9Ocs
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, ''
    9     1        ASSIGN                                                   !1, 0
   10     2        INIT_FCALL                                               'func'
          3        SEND_VAL                                                 5
          4        SEND_VAL                                                 2
          5        DO_FCALL                                      0  $4      
          6        FETCH_LIST_R                                     $5      $4, 0
          7        ASSIGN                                                   !0, $5
          8        FETCH_LIST_R                                     $7      $4, 1
          9        ASSIGN                                                   !1, $7
         10        FREE                                                     $4
   11    11        CONCAT                                           ~9      !0, '+'
         12        CONCAT                                           ~10     ~9, !1
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f9Ocs
function name:  func
number of ops:  8
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ASSIGN                                                   !2, 'awdawda'
    4     3        ASSIGN_OP                                     1          !1, 7
    5     4        INIT_ARRAY                                       ~5      !2
          5        ADD_ARRAY_ELEMENT                                ~5      !1
          6      > RETURN                                                   ~5
    6     7*     > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.18 ms | 1389 KiB | 14 Q