3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tg($T) { foreach ($T['i'] as $i) { $T['i'] = $i + 1; } $T['i'] = array_unique($T['i']); } tg(array(1, 1, 3, 5));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T5eKD
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'tg'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function tg:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/T5eKD
function name:  tg
number of ops:  16
compiled vars:  !0 = $T, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_DIM_R                                      ~2      !0, 'i'
          2      > FE_RESET_R                                       $3      ~2, ->8
          3    > > FE_FETCH_R                                               $3, !1, ->8
    5     4    >   ADD                                              ~5      !1, 1
          5        ASSIGN_DIM                                               !0, 'i'
          6        OP_DATA                                                  ~5
    4     7      > JMP                                                      ->3
          8    >   FE_FREE                                                  $3
    8     9        INIT_FCALL                                               'array_unique'
         10        FETCH_DIM_R                                      ~7      !0, 'i'
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        ASSIGN_DIM                                               !0, 'i'
         14        OP_DATA                                                  $8
    9    15      > RETURN                                                   null

End of function tg

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.91 ms | 1398 KiB | 16 Q