3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new DateTime('1 march 2014 04:13'); $d2 = new DateTime('2 march 2014 05:13'); print (d2 - d1)[d]; print "Hello"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S1isP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $d1, !1 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '1+march+2014+04%3A13'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '2+march+2014+05%3A13'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        FETCH_CONSTANT                                   ~8      'd2'
          9        FETCH_CONSTANT                                   ~9      'd1'
         10        SUB                                              ~10     ~8, ~9
         11        FETCH_CONSTANT                                   ~11     'd'
         12        FETCH_DIM_R                                      ~12     ~10, ~11
         13        ECHO                                                     ~12
    8    14        ECHO                                                     'Hello'
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.77 ms | 1393 KiB | 13 Q