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 floor($var/$divide)*$divide;
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/2jcCa
function name:  (null)
number of ops:  18
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
   10    11    >   INIT_FCALL                                               'floor'
         12        DIV                                              ~13     !0, !2
         13        SEND_VAL                                                 ~13
         14        DO_ICALL                                         $14     
         15        MUL                                              ~15     !2, $14
         16        ECHO                                                     ~15
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.02 ms | 1395 KiB | 15 Q