3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insert ( $var, $key ) { for ($i=$key;$i<=count($dizi);$i++){ $dizi[$i+1]=$dizi[$i]; } $dizi[$key]=$var; } $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/QkFmI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $dizi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'insert'
          2        SEND_VAL                                                 'a'
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0          
   11     5      > RETURN                                                   1

Function insert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/QkFmI
function name:  insert
number of ops:  15
compiled vars:  !0 = $var, !1 = $key, !2 = $i, !3 = $dizi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, !1
          3      > JMP                                                      ->9
    5     4    >   ADD                                              ~5      !2, 1
          5        FETCH_DIM_R                                      ~7      !3, !2
          6        ASSIGN_DIM                                               !3, ~5
          7        OP_DATA                                                  ~7
    4     8        PRE_INC                                                  !2
          9    >   COUNT                                            ~9      !3
         10        IS_SMALLER_OR_EQUAL                                      !2, ~9
         11      > JMPNZ                                                    ~10, ->4
    7    12    >   ASSIGN_DIM                                               !3, !1
         13        OP_DATA                                                  !0
    8    14      > RETURN                                                   null

End of function insert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.79 ms | 1398 KiB | 14 Q