3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pMonth = "-$p month"; $startDate = new DateTime(); $startDate = $startDate->strtotime(''. $pMonth .'', $startDate); $startDate = $startDate->format('m-01-Y 00:00:00');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ve9lm
function name:  (null)
number of ops:  19
compiled vars:  !0 = $pMonth, !1 = $p, !2 = $startDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ROPE_INIT                                     3  ~4      '-'
          1        ROPE_ADD                                      1  ~4      ~4, !1
          2        ROPE_END                                      2  ~3      ~4, '+month'
          3        ASSIGN                                                   !0, ~3
    3     4        NEW                                              $7      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !2, $7
    4     7        INIT_METHOD_CALL                                         !2, 'strtotime'
          8        CONCAT                                           ~10     '', !0
          9        CONCAT                                           ~11     ~10, ''
         10        SEND_VAL_EX                                              ~11
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0  $12     
         13        ASSIGN                                                   !2, $12
    5    14        INIT_METHOD_CALL                                         !2, 'format'
         15        SEND_VAL_EX                                              'm-01-Y+00%3A00%3A00'
         16        DO_FCALL                                      0  $14     
         17        ASSIGN                                                   !2, $14
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.52 ms | 1393 KiB | 13 Q