3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 1394 KiB | 19 Q