3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 7; print_r(range(-floor($i / 2), floor($i / 2))); $i = 3; print_r(range(-floor($i / 2), floor($i / 2))); $i = 4; print_r(range(-floor($i / 2), floor($i / 2) - 1)); $i = 4; print_r(range(1 - floor($i / 2), floor($i / 2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ca6ZS
function name:  (null)
number of ops:  70
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 7
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'range'
          3        INIT_FCALL                                               'floor'
          4        DIV                                              ~2      !0, 2
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        MUL                                              ~4      $3, -1
          8        SEND_VAL                                                 ~4
          9        INIT_FCALL                                               'floor'
         10        DIV                                              ~5      !0, 2
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
    5    17        ASSIGN                                                   !0, 3
    6    18        INIT_FCALL                                               'print_r'
         19        INIT_FCALL                                               'range'
         20        INIT_FCALL                                               'floor'
         21        DIV                                              ~10     !0, 2
         22        SEND_VAL                                                 ~10
         23        DO_ICALL                                         $11     
         24        MUL                                              ~12     $11, -1
         25        SEND_VAL                                                 ~12
         26        INIT_FCALL                                               'floor'
         27        DIV                                              ~13     !0, 2
         28        SEND_VAL                                                 ~13
         29        DO_ICALL                                         $14     
         30        SEND_VAR                                                 $14
         31        DO_ICALL                                         $15     
         32        SEND_VAR                                                 $15
         33        DO_ICALL                                                 
    7    34        ASSIGN                                                   !0, 4
    8    35        INIT_FCALL                                               'print_r'
         36        INIT_FCALL                                               'range'
         37        INIT_FCALL                                               'floor'
         38        DIV                                              ~18     !0, 2
         39        SEND_VAL                                                 ~18
         40        DO_ICALL                                         $19     
         41        MUL                                              ~20     $19, -1
         42        SEND_VAL                                                 ~20
         43        INIT_FCALL                                               'floor'
         44        DIV                                              ~21     !0, 2
         45        SEND_VAL                                                 ~21
         46        DO_ICALL                                         $22     
         47        SUB                                              ~23     $22, 1
         48        SEND_VAL                                                 ~23
         49        DO_ICALL                                         $24     
         50        SEND_VAR                                                 $24
         51        DO_ICALL                                                 
    9    52        ASSIGN                                                   !0, 4
   10    53        INIT_FCALL                                               'print_r'
         54        INIT_FCALL                                               'range'
         55        INIT_FCALL                                               'floor'
         56        DIV                                              ~27     !0, 2
         57        SEND_VAL                                                 ~27
         58        DO_ICALL                                         $28     
         59        SUB                                              ~29     1, $28
         60        SEND_VAL                                                 ~29
         61        INIT_FCALL                                               'floor'
         62        DIV                                              ~30     !0, 2
         63        SEND_VAL                                                 ~30
         64        DO_ICALL                                         $31     
         65        SEND_VAR                                                 $31
         66        DO_ICALL                                         $32     
         67        SEND_VAR                                                 $32
         68        DO_ICALL                                                 
         69      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
274.02 ms | 1012 KiB | 16 Q