3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getTime($time) { list($hours, $minutes, $seconds) = explode(':', $time); echo $minutes . ': ' . 60 - (floor((60-$minutes) / 10) * 10) . "\n"; } getTime('12:34:00'); getTime('12:19:00'); getTime('12:01:00'); getTime('12:46:00'); getTime('12:58:00');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9P3g
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'gettime'
          1        SEND_VAL                                                 '12%3A34%3A00'
          2        DO_FCALL                                      0          
   11     3        INIT_FCALL                                               'gettime'
          4        SEND_VAL                                                 '12%3A19%3A00'
          5        DO_FCALL                                      0          
   12     6        INIT_FCALL                                               'gettime'
          7        SEND_VAL                                                 '12%3A01%3A00'
          8        DO_FCALL                                      0          
   13     9        INIT_FCALL                                               'gettime'
         10        SEND_VAL                                                 '12%3A46%3A00'
         11        DO_FCALL                                      0          
   14    12        INIT_FCALL                                               'gettime'
         13        SEND_VAL                                                 '12%3A58%3A00'
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

Function gettime:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9P3g
function name:  getTime
number of ops:  24
compiled vars:  !0 = $time, !1 = $hours, !2 = $minutes, !3 = $seconds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        FETCH_LIST_R                                     $5      $4, 0
          6        ASSIGN                                                   !1, $5
          7        FETCH_LIST_R                                     $7      $4, 1
          8        ASSIGN                                                   !2, $7
          9        FETCH_LIST_R                                     $9      $4, 2
         10        ASSIGN                                                   !3, $9
         11        FREE                                                     $4
    7    12        CONCAT                                           ~11     !2, '%3A+'
         13        INIT_FCALL                                               'floor'
         14        SUB                                              ~12     60, !2
         15        DIV                                              ~13     ~12, 10
         16        SEND_VAL                                                 ~13
         17        DO_ICALL                                         $14     
         18        MUL                                              ~15     $14, 10
         19        SUB                                              ~16     60, ~15
         20        CONCAT                                           ~17     ~11, ~16
         21        CONCAT                                           ~18     ~17, '%0A'
         22        ECHO                                                     ~18
    8    23      > RETURN                                                   null

End of function gettime

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.51 ms | 1403 KiB | 22 Q