3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gmt = "-5:00"; $local = "-8:00"; $offset = $local - $gmt; echo (int)$offset*3600; strtotime("-5:00 hours");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HKSN1
function name:  (null)
number of ops:  11
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
    7     4        CAST                                          4  ~7      !2
          5        MUL                                              ~8      ~7, 3600
          6        ECHO                                                     ~8
    9     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '-5%3A00+hours'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1394 KiB | 15 Q