3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Period extends \DatePeriod { public $test; } $p = new Period(new \DateTime('now'), new \DateInterval('P1Y'), new \DateTime('tomorrow')); $p->test = FALSE;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0oIl7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'Period'
          1        NEW                                              $2      'DateTime'
          2        SEND_VAL_EX                                              'now'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
          5        NEW                                              $4      'DateInterval'
          6        SEND_VAL_EX                                              'P1Y'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $4
          9        NEW                                              $6      'DateTime'
         10        SEND_VAL_EX                                              'tomorrow'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $6
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !0, $1
    9    15        ASSIGN_OBJ                                               !0, 'test'
         16        OP_DATA                                                  <false>
         17      > RETURN                                                   1

Class Period: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.61 ms | 1384 KiB | 13 Q