3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $time1 = strtotime('today'); $time2 = strtotime('today UTC'); $jsTimeShift = ($time1 - $time2) * 1000; echo $jsTimeShift;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pkRpR
function name:  (null)
number of ops:  16
compiled vars:  !0 = $time1, !1 = $time2, !2 = $jsTimeShift
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FLos_Angeles'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'today'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 'today+UTC'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11        SUB                                              ~8      !0, !1
         12        MUL                                              ~9      ~8, 1000
         13        ASSIGN                                                   !2, ~9
    6    14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.6 ms | 1385 KiB | 17 Q