3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateEvent = new DateTime("05/02/2014"); $dateOther = new DateTime("05/03/2014"); $dateSooner = new DateTime("05/01/2014"); var_dump($dateEvent->diff($dateOther));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5NQe
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dateEvent, !1 = $dateOther, !2 = $dateSooner
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '05%2F02%2F2014'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        NEW                                              $6      'DateTime'
          5        SEND_VAL_EX                                              '05%2F03%2F2014'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    4     8        NEW                                              $9      'DateTime'
          9        SEND_VAL_EX                                              '05%2F01%2F2014'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $9
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'diff'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $12     
         16        SEND_VAR                                                 $12
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.23 ms | 1386 KiB | 15 Q