3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iso = $start->format(DateTime::W3C) . '/' . $end->format(DateTime::W3C) . '/P1D'; #$iso = 'R2/2013-09-09T12:00:15Z/P1D'; var_dump($iso); $periods = new DatePeriod($iso);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gpjRm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $iso, !1 = $start, !2 = $end, !3 = $periods
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_METHOD_CALL                                         !1, 'format'
          1        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsP'
          2        DO_FCALL                                      0  $4      
          3        CONCAT                                           ~5      $4, '%2F'
          4        INIT_METHOD_CALL                                         !2, 'format'
          5        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsP'
          6        DO_FCALL                                      0  $6      
          7        CONCAT                                           ~7      ~5, $6
          8        CONCAT                                           ~8      ~7, '%2FP1D'
          9        ASSIGN                                                   !0, ~8
    5    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    6    13        NEW                                              $11     'DatePeriod'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !3, $11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1394 KiB | 15 Q