3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod( new DateTime('2010-10-01'), new DateInterval('P1D'), new DateTime('2010-10-05') ); die(var_dump($period));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/hEt4I
function name:  (null)
number of ops:  20
compiled vars:  !0 = $period
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DatePeriod'
    3     1        NEW                                              $2      'DateTime'
          2        SEND_VAL_EX                                              '2010-10-01'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
    4     5        NEW                                              $4      'DateInterval'
          6        SEND_VAL_EX                                              'P1D'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $4
    5     9        NEW                                              $6      'DateTime'
         10        SEND_VAL_EX                                              '2010-10-05'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $6
         13        DO_FCALL                                      0          
    2    14        ASSIGN                                                   !0, $1
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $10     
         18      > EXIT                                                     $10
         19*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.69 ms | 1394 KiB | 15 Q