3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $date = new DateTime(); $date2 = new DateTime('+64 minutes'); var_dump($date->diff($date2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jSl2L
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FLondon'
          2        DO_ICALL                                                 
    3     3        NEW                                              $3      'DateTime'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
    4     6        NEW                                              $6      'DateTime'
          7        SEND_VAL_EX                                              '%2B64+minutes'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'diff'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1394 KiB | 17 Q