3v4l.org

run code in 300+ PHP versions simultaneously
<?php $minutes = 272; $minutes = floor($minutes / 60); if ($minutes < 0) { echo $minutes . 'm'; } else if ($minutes >= 60) { echo $minutes . ' h '; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Z6E1l
function name:  (null)
number of ops:  16
compiled vars:  !0 = $minutes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 272
    4     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~2      !0, 60
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    5     6        IS_SMALLER                                               !0, 0
          7      > JMPZ                                                     ~5, ->11
    7     8    >   CONCAT                                           ~6      !0, 'm'
          9        ECHO                                                     ~6
         10      > JMP                                                      ->15
    9    11    >   IS_SMALLER_OR_EQUAL                                      60, !0
         12      > JMPZ                                                     ~7, ->15
   11    13    >   CONCAT                                           ~8      !0, '+h+'
         14        ECHO                                                     ~8
   12    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.8 ms | 1399 KiB | 15 Q