3v4l.org

run code in 300+ PHP versions simultaneously
<?php function enqueue_timer($arr_timer_struct) { $timers = [6,5,4,2,1]; $flt_execute_time = $arr_timer_struct; for ($int_i = count($timers) - 1; $int_i >= 0; $int_i--) { if ($timers[$int_i] && $timers[$int_i] > $flt_execute_time) { break; } } array_splice($timers, $int_i, 0, [$arr_timer_struct]); var_dump($timers); } enqueue_timer(3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7XAkK
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'enqueue_timer'
          1        SEND_VAL                                                 3
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function enqueue_timer:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
Branch analysis from position: 12
filename:       /in/7XAkK
function name:  enqueue_timer
number of ops:  28
compiled vars:  !0 = $arr_timer_struct, !1 = $timers, !2 = $flt_execute_time, !3 = $int_i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, !0
    7     3        COUNT                                            ~6      !1
          4        SUB                                              ~7      ~6, 1
          5        ASSIGN                                                   !3, ~7
          6      > JMP                                                      ->15
    8     7    >   FETCH_DIM_R                                      ~9      !1, !3
          8      > JMPZ_EX                                          ~9      ~9, ->12
          9    >   FETCH_DIM_R                                      ~10     !1, !3
         10        IS_SMALLER                                       ~11     !2, ~10
         11        BOOL                                             ~9      ~11
         12    > > JMPZ                                                     ~9, ->14
    9    13    > > JMP                                                      ->17
    7    14    >   PRE_DEC                                                  !3
         15    >   IS_SMALLER_OR_EQUAL                                      0, !3
         16      > JMPNZ                                                    ~13, ->7
   13    17    >   INIT_FCALL                                               'array_splice'
         18        SEND_REF                                                 !1
         19        SEND_VAR                                                 !3
         20        SEND_VAL                                                 0
         21        INIT_ARRAY                                       ~14     !0
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                                 
   14    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
   15    27      > RETURN                                                   null

End of function enqueue_timer

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.56 ms | 1394 KiB | 18 Q