3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $startdate = strtotime($month.'/1/'.$year); $stopdate = strtotime('last day of this month ',$startdate); echo (date('Y-m-d',$startDate).' - '.date('Y-m-d',$stopDate));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/soeqI
function name:  (null)
number of ops:  25
compiled vars:  !0 = $month, !1 = $year, !2 = $startdate, !3 = $stopdate, !4 = $startDate, !5 = $stopDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12
    3     1        ASSIGN                                                   !1, 2014
    5     2        INIT_FCALL                                               'strtotime'
          3        CONCAT                                           ~8      !0, '%2F1%2F'
          4        CONCAT                                           ~9      ~8, !1
          5        SEND_VAL                                                 ~9
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !2, $10
    6     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 'last+day+of+this+month+'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $12     
         12        ASSIGN                                                   !3, $12
    8    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                         $14     
         17        CONCAT                                           ~15     $14, '+-+'
         18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'Y-m-d'
         20        SEND_VAR                                                 !5
         21        DO_ICALL                                         $16     
         22        CONCAT                                           ~17     ~15, $16
         23        ECHO                                                     ~17
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.92 ms | 1395 KiB | 17 Q