3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 720 / 11; $y = 0; for ($i = 0; $i < 13; $i++) { $min = floor($y); $s = 60 * ($y-$min); $sec = floor($s); $ms = $s-$sec; echo "$i:$min:$sec.$ms $y\n"; $y += $x; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 4
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 4
Branch analysis from position: 32
Branch analysis from position: 4
filename:       /in/Db4dc
function name:  (null)
number of ops:  33
compiled vars:  !0 = $x, !1 = $y, !2 = $i, !3 = $min, !4 = $s, !5 = $sec, !6 = $ms
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 65.4545
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->30
    6     4    >   INIT_FCALL                                               'floor'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !3, $10
    7     8        SUB                                              ~12     !1, !3
          9        MUL                                              ~13     ~12, 60
         10        ASSIGN                                                   !4, ~13
    8    11        INIT_FCALL                                               'floor'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $15     
         14        ASSIGN                                                   !5, $15
    9    15        SUB                                              ~17     !4, !5
         16        ASSIGN                                                   !6, ~17
   10    17        ROPE_INIT                                    10  ~20     !2
         18        ROPE_ADD                                      1  ~20     ~20, '%3A'
         19        ROPE_ADD                                      2  ~20     ~20, !3
         20        ROPE_ADD                                      3  ~20     ~20, '%3A'
         21        ROPE_ADD                                      4  ~20     ~20, !5
         22        ROPE_ADD                                      5  ~20     ~20, '.'
         23        ROPE_ADD                                      6  ~20     ~20, !6
         24        ROPE_ADD                                      7  ~20     ~20, '+'
         25        ROPE_ADD                                      8  ~20     ~20, !1
         26        ROPE_END                                      9  ~19     ~20, '%0A'
         27        ECHO                                                     ~19
   12    28        ASSIGN_OP                                     1          !1, !0
    5    29        PRE_INC                                                  !2
         30    >   IS_SMALLER                                               !2, 13
         31      > JMPNZ                                                    ~27, ->4
   13    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.34 ms | 1396 KiB | 15 Q