3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iso = 'R2/2013-09-09T12:00:15Z/P1D'; $periods = new DatePeriod($iso); print_r($periods); $iso = 'R2/2013-09-09T12:00:15+02:00/P1D'; $periods = new DatePeriod($iso); print_r($periods);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rcBlm
function name:  (null)
number of ops:  17
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                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        ASSIGN                                                   !0, 'R2%2F2013-09-09T12%3A00%3A15%2B02%3A00%2FP1D'
    7     9        NEW                                              $8      'DatePeriod'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $8
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.78 ms | 1394 KiB | 15 Q