3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = 2014; $month = 5; $start_day = date('Y-m-01',strtotime("$year-$month-01")); $end_day = date('Y-m-d',strtotime("$start_day +1 month")-1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6cEUG
function name:  (null)
number of ops:  26
compiled vars:  !0 = $year, !1 = $month, !2 = $start_day, !3 = $end_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2014
    3     1        ASSIGN                                                   !1, 5
    4     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-01'
          4        INIT_FCALL                                               'strtotime'
          5        ROPE_INIT                                     4  ~7      !0
          6        ROPE_ADD                                      1  ~7      ~7, '-'
          7        ROPE_ADD                                      2  ~7      ~7, !1
          8        ROPE_END                                      3  ~6      ~7, '-01'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
    5    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'Y-m-d'
         16        INIT_FCALL                                               'strtotime'
         17        NOP                                                      
         18        FAST_CONCAT                                      ~12     !2, '+%2B1+month'
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
         21        SUB                                              ~14     $13, 1
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !3, $15
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.99 ms | 1395 KiB | 17 Q