3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gmt = "-5:00"; $local = "-8:00"; $offset = $local - $gmt; echo $offset; strtotime("-5:00 hours");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tgcU2
function name:  (null)
number of ops:  9
compiled vars:  !0 = $gmt, !1 = $local, !2 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '-5%3A00'
    3     1        ASSIGN                                                   !1, '-8%3A00'
    5     2        SUB                                              ~5      !1, !0
          3        ASSIGN                                                   !2, ~5
    6     4        ECHO                                                     !2
    8     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '-5%3A00+hours'
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.99 ms | 1398 KiB | 15 Q