3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-02-01'); $end = new DateTime('2013-02-17'); $interval = new DateInterval('P1D'); $period = new DatePeriod($start, $interval, $end); if ($period !== null) { echo "not null"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/tJbaA
function name:  (null)
number of ops:  22
compiled vars:  !0 = $start, !1 = $end, !2 = $interval, !3 = $period
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              '2013-02-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $7      'DateTime'
          5        SEND_VAL_EX                                              '2013-02-17'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    5     8        NEW                                              $10     'DateInterval'
          9        SEND_VAL_EX                                              'P1D'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $10
    6    12        NEW                                              $13     'DatePeriod'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAR_EX                                              !2
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !3, $13
    9    18        TYPE_CHECK                                  1020          !3
         19      > JMPZ                                                     ~16, ->21
   10    20    >   ECHO                                                     'not+null'
   11    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.3 ms | 1394 KiB | 13 Q