3v4l.org

run code in 300+ PHP versions simultaneously
<?php $minutes = 121; echo floor($minutes / 60).':'.strpad($minutes % 60,2,'0');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sOHm4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $minutes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 121
    5     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~2      !0, 60
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        CONCAT                                           ~4      $3, '%3A'
          6        INIT_FCALL_BY_NAME                                       'strpad'
          7        MOD                                              ~5      !0, 60
          8        SEND_VAL_EX                                              ~5
          9        SEND_VAL_EX                                              2
         10        SEND_VAL_EX                                              '0'
         11        DO_FCALL                                      0  $6      
         12        CONCAT                                           ~7      ~4, $6
         13        ECHO                                                     ~7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.97 ms | 1394 KiB | 15 Q