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'); var_dump($existiertnicht); $existiertnicht[] = 'Test'; print_r($existiertnicht); echo $gibtsnicht + 9;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OM5jp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $existiertnicht, !1 = $gibtsnicht
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          
   35     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   36     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  'Test'
   37     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   38    12        ADD                                              ~6      !1, 9
         13        ECHO                                                     ~6
         14      > RETURN                                                   1

Function addtoarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OM5jp
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:
163.56 ms | 1398 KiB | 18 Q