3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 2; $m = $seconds / 60 % 60; $s = $seconds % 60; if ($m >= 1){ $rem = strval($s); if (strlen($rem) == 1){ $rem = sprintf("%02s", $rem); } $time = strval($m); $time = $time.":".$rem; } else if($m == 0){ $time = "0:".$s; } else{ $time = "0:00"; //Error } echo "<span style='margin-left:8px;'>Duration: ", $time, "</span><br>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 24
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gttSF
function name:  (null)
number of ops:  34
compiled vars:  !0 = $seconds, !1 = $m, !2 = $s, !3 = $rem, !4 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        DIV                                              ~6      !0, 60
          2        MOD                                              ~7      ~6, 60
          3        ASSIGN                                                   !1, ~7
    4     4        MOD                                              ~9      !0, 60
          5        ASSIGN                                                   !2, ~9
    5     6        IS_SMALLER_OR_EQUAL                                      1, !1
          7      > JMPZ                                                     ~11, ->24
    6     8    >   CAST                                          6  ~12     !2
          9        ASSIGN                                                   !3, ~12
    7    10        STRLEN                                           ~14     !3
         11        IS_EQUAL                                                 ~14, 1
         12      > JMPZ                                                     ~15, ->18
    8    13    >   INIT_FCALL                                               'sprintf'
         14        SEND_VAL                                                 '%2502s'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $16     
         17        ASSIGN                                                   !3, $16
   10    18    >   CAST                                          6  ~18     !1
         19        ASSIGN                                                   !4, ~18
   11    20        CONCAT                                           ~20     !4, '%3A'
         21        CONCAT                                           ~21     ~20, !3
         22        ASSIGN                                                   !4, ~21
         23      > JMP                                                      ->30
   13    24    >   IS_EQUAL                                                 !1, 0
         25      > JMPZ                                                     ~23, ->29
   14    26    >   CONCAT                                           ~24     '0%3A', !2
         27        ASSIGN                                                   !4, ~24
         28      > JMP                                                      ->30
   17    29    >   ASSIGN                                                   !4, '0%3A00'
   20    30    >   ECHO                                                     '%3Cspan+style%3D%27margin-left%3A8px%3B%27%3EDuration%3A+'
         31        ECHO                                                     !4
         32        ECHO                                                     '%3C%2Fspan%3E%3Cbr%3E'
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.5 ms | 1396 KiB | 15 Q