3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iso = 'R2/2013-09-09T12:00:15Z/P1D'; $periods = new DatePeriod($iso); var_dump( is_object($periods) ); $iso = 'R2/2013-09-09T12:00:15+02:00/P1D'; $periods = new DatePeriod($iso); var_dump( is_object($periods) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BPNBg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $iso, !1 = $periods
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'R2%2F2013-09-09T12%3A00%3A15Z%2FP1D'
    3     1        NEW                                              $3      'DatePeriod'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'var_dump'
          6        TYPE_CHECK                                  256  ~6      !1
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
    6     9        ASSIGN                                                   !0, 'R2%2F2013-09-09T12%3A00%3A15%2B02%3A00%2FP1D'
    7    10        NEW                                              $9      'DatePeriod'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $9
    8    14        INIT_FCALL                                               'var_dump'
         15        TYPE_CHECK                                  256  ~12     !1
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
221.08 ms | 1394 KiB | 15 Q