3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*function add($a, $b){ return $a + $b; } echo add(2,3); function subtract ($a, $b){ return $a - $b; } echo subtract(5,4); function concatenate($a, $b){ return $a . $b; } echo concatenate('Hello', 'Wie');*/ //$arr = ['test', 'test2']; //print_r($arr[0]); function addToArray($arg1, $arg2){ $arr2 = []; $arr2[] = $arg1; $arr2[] = $arg2; print_r($arr2); } addToArray('Hallo','Yoooo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lvrQM
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   INIT_FCALL                                               'addtoarray'
          1        SEND_VAL                                                 'Hallo'
          2        SEND_VAL                                                 'Yoooo'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function addtoarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lvrQM
function name:  addToArray
number of ops:  11
compiled vars:  !0 = $arg1, !1 = $arg2, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   26     2        ASSIGN                                                   !2, <array>
   27     3        ASSIGN_DIM                                               !2
          4        OP_DATA                                                  !0
   28     5        ASSIGN_DIM                                               !2
          6        OP_DATA                                                  !1
   30     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   31    10      > RETURN                                                   null

End of function addtoarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.33 ms | 1397 KiB | 16 Q