3v4l.org

run code in 300+ PHP versions simultaneously
<?php $init = 15409; $hours = floor($init / 3600); $minutes = floor(($init / 60) % 60); $seconds = $init % 60; echo "$hours:$minutes:$seconds";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qJtgV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $init, !1 = $hours, !2 = $minutes, !3 = $seconds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 15409
    3     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~5      !0, 3600
          3        SEND_VAL                                                 ~5
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        INIT_FCALL                                               'floor'
          7        DIV                                              ~8      !0, 60
          8        MOD                                              ~9      ~8, 60
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !2, $10
    5    12        MOD                                              ~12     !0, 60
         13        ASSIGN                                                   !3, ~12
    7    14        ROPE_INIT                                     5  ~15     !1
         15        ROPE_ADD                                      1  ~15     ~15, '%3A'
         16        ROPE_ADD                                      2  ~15     ~15, !2
         17        ROPE_ADD                                      3  ~15     ~15, '%3A'
         18        ROPE_END                                      4  ~14     ~15, !3
         19        ECHO                                                     ~14
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.65 ms | 1386 KiB | 15 Q