3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 15; $len = strlen($var)-1; $divide = 1; for($i=1;$i<=$len;$i++){ $divide .= 0; } echo $divide; echo floor($var);
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 = 11, Position 2 = 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/kbciQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $var, !1 = $len, !2 = $divide, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 15
    3     1        STRLEN                                           ~5      !0
          2        SUB                                              ~6      ~5, 1
          3        ASSIGN                                                   !1, ~6
    4     4        ASSIGN                                                   !2, 1
    5     5        ASSIGN                                                   !3, 1
          6      > JMP                                                      ->9
    6     7    >   ASSIGN_OP                                     8          !2, 0
    5     8        PRE_INC                                                  !3
          9    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         10      > JMPNZ                                                    ~12, ->7
    8    11    >   ECHO                                                     !2
    9    12        INIT_FCALL                                               'floor'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $13     
         15        ECHO                                                     $13
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.57 ms | 1395 KiB | 15 Q