3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = 0; print_r(new DateInterval('P' . $day . 'D'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/779c8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        INIT_FCALL                                               'print_r'
          2        NEW                                              $2      'DateInterval'
          3        CONCAT                                           ~3      'P', !0
          4        CONCAT                                           ~4      ~3, 'D'
          5        SEND_VAL_EX                                              ~4
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.18 ms | 1393 KiB | 15 Q