3v4l.org

run code in 500+ PHP versions simultaneously
<?php print_r((new DateTime('2018-10-01', new DateTimeZone('UTC')))->diff(new DateTime('2018-11-01', new DateTimeZone('UTC'))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PWKiD
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'print_r'
          1        NEW                                                  $0      'DateTime'
          2        SEND_VAL_EX                                                  '2018-10-01'
          3        NEW                                                  $1      'DateTimeZone'
          4        SEND_VAL_EX                                                  'UTC'
          5        DO_FCALL                                          0          
          6        SEND_VAR_NO_REF_EX                                           $1
          7        DO_FCALL                                          0          
          8        INIT_METHOD_CALL                                             $0, 'diff'
          9        NEW                                                  $4      'DateTime'
         10        SEND_VAL_EX                                                  '2018-11-01'
         11        NEW                                                  $5      'DateTimeZone'
         12        SEND_VAL_EX                                                  'UTC'
         13        DO_FCALL                                          0          
         14        SEND_VAR_NO_REF_EX                                           $5
         15        DO_FCALL                                          0          
         16        SEND_VAR_NO_REF_EX                                           $4
         17        DO_FCALL                                          0  $8      
         18        SEND_VAR                                                     $8
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.53 ms | 2681 KiB | 14 Q