3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hour = '20'; $americanTimezone = '-5'; $datetime = new DateTime(); var_dump(DateTime::getOffset);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E8DKF
function name:  (null)
number of ops:  10
compiled vars:  !0 = $hour, !1 = $americanTimezone, !2 = $datetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20'
    5     1        ASSIGN                                                   !1, '-5'
    7     2        NEW                                              $5      'DateTime'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $5
    8     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CLASS_CONSTANT                             ~8      'DateTime', 'getOffset'
          7        SEND_VAL                                                 ~8
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.81 ms | 1394 KiB | 15 Q