3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insert ( $var, $key ) { $dizi[$key]=$var; echo var_dump($dizi); } $dizi = array ( '1','2','3','4','5'); insert ("a",3); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/joY9b
function name:  (null)
number of ops:  6
compiled vars:  !0 = $dizi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'insert'
          2        SEND_VAL                                                 'a'
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0          
   10     5      > RETURN                                                   1

Function insert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/joY9b
function name:  insert
number of ops:  9
compiled vars:  !0 = $var, !1 = $key, !2 = $dizi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ASSIGN_DIM                                               !2, !1
          3        OP_DATA                                                  !0
    6     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
    7     8      > RETURN                                                   null

End of function insert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.36 ms | 1397 KiB | 16 Q