3v4l.org

run code in 300+ PHP versions simultaneously
<?php $left = '6h : 27m : 5s'; $right = '6h : 27m : 15s'; if (version_compare($left, $right, 'gt')) { echo 'left is greater than right'; } else { echo 'left is less than or equal to right'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P3NU7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $left, !1 = $right
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '6h+%3A+27m+%3A+5s'
    4     1        ASSIGN                                                   !1, '6h+%3A+27m+%3A+15s'
    6     2        INIT_FCALL                                               'version_compare'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 'gt'
          6        DO_ICALL                                         $4      
          7      > JMPZ                                                     $4, ->10
    7     8    >   ECHO                                                     'left+is+greater+than+right'
    6     9      > JMP                                                      ->11
    9    10    >   ECHO                                                     'left+is+less+than+or+equal+to+right'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.39 ms | 1004 KiB | 14 Q