3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $seconds = 24; echo $seconds > 3600 ? gmdate("H:i:s", seconds) : gmdate("i:s", seconds);
based on o0bQ7
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
Jump found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Jump found. (Code = 62) Position 1 = -2
filename:       /in/i3q8u
function name:  (null)
number of ops:  18
compiled vars:  !0 = $seconds
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 24
   5     1        IS_SMALLER                                       ~2      3600, !0
         2      > JMPZ                                                     ~2, ->10
         3    >   INIT_FCALL                                               'gmdate'
         4        SEND_VAL                                                 'H%3Ai%3As'
         5        FETCH_CONSTANT                                   ~3      'seconds'
         6        SEND_VAL                                                 ~3
         7        DO_ICALL                                         $4      
         8        QM_ASSIGN                                        ~5      $4
         9      > JMP                                                      ->16
        10    >   INIT_FCALL                                               'gmdate'
        11        SEND_VAL                                                 'i%3As'
        12        FETCH_CONSTANT                                   ~6      'seconds'
        13        SEND_VAL                                                 ~6
        14        DO_ICALL                                         $7      
        15        QM_ASSIGN                                        ~5      $7
        16    >   ECHO                                                     ~5
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0