3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = strtotime('2013-10-01 00:00:00'); $t2 = strtotime('2013-11-01 00:00:00'); $i = date_diff(DateTime::createFromFormat('U', $t1), DateTime::createFromFormat('U', $t2), true); print_r($i);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2NI7H
function name:  (null)
number of ops:  26
compiled vars:  !0 = $t1, !1 = $t2, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2013-10-01+00%3A00%3A00'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2013-11-01+00%3A00%3A00'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'date_diff'
          9        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
         10        SEND_VAL                                                 'U'
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR                                                 $7
         14        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
         15        SEND_VAL                                                 'U'
         16        SEND_VAR                                                 !1
         17        DO_FCALL                                      0  $8      
         18        SEND_VAR                                                 $8
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $9      
         21        ASSIGN                                                   !2, $9
    5    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.71 ms | 1395 KiB | 19 Q