3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new \DateTime('02 Feb 2014 14:34')); $now = (new \DateTime()); $length = (new \DateTimeInterval('1y')); var_dump(['start' => $start, 'now' => $now, 'length' => $length]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DdAT2
function name:  (null)
number of ops:  18
compiled vars:  !0 = $start, !1 = $now, !2 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '02+Feb+2014+14%3A34'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        NEW                                              $6      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    5     7        NEW                                              $9      'DateTimeInterval'
          8        SEND_VAL_EX                                              '1y'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $9
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_ARRAY                                       ~12     !0, 'start'
         13        ADD_ARRAY_ELEMENT                                ~12     !1, 'now'
         14        ADD_ARRAY_ELEMENT                                ~12     !2, 'length'
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.28 ms | 1399 KiB | 15 Q