3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Zurich'); $a = new DateTime("01-01-0001"); $b = new DateInterval("P1D"); echo $a->sub($b)->format("d.m.Y");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t03am
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FZurich'
          2        DO_ICALL                                                 
    5     3        NEW                                              $3      'DateTime'
          4        SEND_VAL_EX                                              '01-01-0001'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    6     7        NEW                                              $6      'DateInterval'
          8        SEND_VAL_EX                                              'P1D'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    8    11        INIT_METHOD_CALL                                         !0, 'sub'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $9      
         14        INIT_METHOD_CALL                                         $9, 'format'
         15        SEND_VAL_EX                                              'd.m.Y'
         16        DO_FCALL                                      0  $10     
         17        ECHO                                                     $10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.78 ms | 1394 KiB | 15 Q