3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 247; $m = $seconds / 60 % 60; $newDate = strval($m); $formattedTime = date('h:i:s', $newDate); echo $m; echo " \n"; echo $formattedTime;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UM0If
function name:  (null)
number of ops:  15
compiled vars:  !0 = $seconds, !1 = $m, !2 = $newDate, !3 = $formattedTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 247
    3     1        DIV                                              ~5      !0, 60
          2        MOD                                              ~6      ~5, 60
          3        ASSIGN                                                   !1, ~6
    4     4        CAST                                          6  ~8      !1
          5        ASSIGN                                                   !2, ~8
    5     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'h%3Ai%3As'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !3, $10
    6    11        ECHO                                                     !1
    7    12        ECHO                                                     '+%0A'
    8    13        ECHO                                                     !3
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.7 ms | 1394 KiB | 15 Q