3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0;$i<60;$i++){ $array[] = $i; } $server = 2; var_dump($array); $items = floor(count($array)/3); echo $items; $array = array_splice($array,$items*$server,$items); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
Branch analysis from position: 2
filename:       /in/R7aOI
function name:  (null)
number of ops:  29
compiled vars:  !0 = $i, !1 = $array, !2 = $server, !3 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->5
    4     2    >   ASSIGN_DIM                                               !1
          3        OP_DATA                                                  !0
    3     4        PRE_INC                                                  !0
          5    >   IS_SMALLER                                               !0, 60
          6      > JMPNZ                                                    ~7, ->2
    7     7    >   ASSIGN                                                   !2, 2
    8     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'floor'
         12        COUNT                                            ~10     !1
         13        DIV                                              ~11     ~10, 3
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !3, $12
   10    17        ECHO                                                     !3
   11    18        INIT_FCALL                                               'array_splice'
         19        SEND_REF                                                 !1
         20        MUL                                              ~14     !3, !2
         21        SEND_VAL                                                 ~14
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !1, $15
   13    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.54 ms | 1401 KiB | 19 Q