3v4l.org

run code in 500+ PHP versions simultaneously
<?php function fmtMSS($s){ $minutes = floor($s/60); $seconds = $s-$minutes*60; return "$minutes:$seconds"; }; echo fmtMSS(235);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GQs7j
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'fmtmss'
          1        SEND_VAL                                                     235
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

Function fmtmss:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GQs7j
function name:  fmtMSS
number of ops:  14
compiled vars:  !0 = $s, !1 = $minutes, !2 = $seconds
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'floor'
          2        DIV                                                  ~3      !0, 60
          3        SEND_VAL                                                     ~3
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    5     6        MUL                                                  ~6      !1, 60
          7        SUB                                                  ~7      !0, ~6
          8        ASSIGN                                                       !2, ~7
    6     9        ROPE_INIT                                         3  ~10     !1
         10        ROPE_ADD                                          1  ~10     ~10, '%3A'
         11        ROPE_END                                          2  ~9      ~10, !2
         12      > RETURN                                                       ~9
    7    13*     > RETURN                                                       null

End of function fmtmss

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.82 ms | 2012 KiB | 14 Q