3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = (new DateTime)->sub(new DateInterval(“P1D”)); var_dump($date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KQhpI
function name:  (null)
number of ops:  14
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'sub'
          3        NEW                                              $3      'DateInterval'
          4        FETCH_CONSTANT                                   ~4      '%E2%80%9CP1D%E2%80%9D'
          5        SEND_VAL_EX                                              ~4
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $3
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !0, $6
    3    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.86 ms | 1398 KiB | 15 Q