3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr[] = 'test'; function addToArray($arg1, $arg2){ $arr = []; $arr[] = $arg1; $arr[] = $arg2; print_r($arr); } addToArray('test', 'nichtJulian'); var_dump($extistiertnicht); $extistiertnicht[] ='Test'; print_R($extistiertnicht); echo $gibtsnicht + 9; echo substr('test', 0, 1); echo sha1('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fvng8
function name:  (null)
number of ops:  27
compiled vars:  !0 = $arr, !1 = $extistiertnicht, !2 = $gibtsnicht
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'test'
   11     2        INIT_FCALL                                               'addtoarray'
          3        SEND_VAL                                                 'test'
          4        SEND_VAL                                                 'nichtJulian'
          5        DO_FCALL                                      0          
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   15     9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  'Test'
   16    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   17    14        ADD                                              ~8      !2, 9
         15        ECHO                                                     ~8
   19    16        INIT_FCALL                                               'substr'
         17        SEND_VAL                                                 'test'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $9      
         21        ECHO                                                     $9
   20    22        INIT_FCALL                                               'sha1'
         23        SEND_VAL                                                 'test'
         24        DO_ICALL                                         $10     
         25        ECHO                                                     $10
         26      > RETURN                                                   1

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

End of function addtoarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.68 ms | 1399 KiB | 22 Q