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/N3Xlo
function name:  (null)
number of ops:  25
compiled vars:  !0 = $month, !1 = $year, !2 = $startDate, !3 = $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                                           ~6      !0, '%2F1%2F'
          4        CONCAT                                           ~7      ~6, !1
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !2, $8
    6     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 'last+day+of+this+month+'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !3, $10
    8    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $12     
         17        CONCAT                                           ~13     $12, '+-+'
         18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'Y-m-d'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $14     
         22        CONCAT                                           ~15     ~13, $14
         23        ECHO                                                     ~15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.11 ms | 1395 KiB | 17 Q