3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: text/plain'); foreach(array(1,2) as $n) { var_dump(date("c",strtotime("first day of +$n months"))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/fdBHH
function name:  (null)
number of ops:  21
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    3     3      > FE_RESET_R                                       $2      <array>, ->19
          4    > > FE_FETCH_R                                               $2, !0, ->19
    4     5    >   INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'c'
          8        INIT_FCALL                                               'strtotime'
          9        ROPE_INIT                                     3  ~4      'first+day+of+%2B'
         10        ROPE_ADD                                      1  ~4      ~4, !0
         11        ROPE_END                                      2  ~3      ~4, '+months'
         12        SEND_VAL                                                 ~3
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
    3    18      > JMP                                                      ->4
         19    >   FE_FREE                                                  $2
    5    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165 ms | 1395 KiB | 21 Q