3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 10; $monthName = date('M', strtotime('2012-'.$month.'-01')); echo $monthName."\r\n"; echo date('d.m.Y H:i:s', strtotime('first day of '.$monthName))."\r\n"; echo date('d.m.Y H:i:s', strtotime('last day of '.$monthName.', 23:59:59'))."\r\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YgUjr
function name:  (null)
number of ops:  35
compiled vars:  !0 = $month, !1 = $monthName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'M'
          3        INIT_FCALL                                               'strtotime'
          4        CONCAT                                           ~3      '2012-', !0
          5        CONCAT                                           ~4      ~3, '-01'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        CONCAT                                           ~8      !1, '%0D%0A'
         12        ECHO                                                     ~8
    7    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'd.m.Y+H%3Ai%3As'
         15        INIT_FCALL                                               'strtotime'
         16        CONCAT                                           ~9      'first+day+of+', !1
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     $11, '%0D%0A'
         22        ECHO                                                     ~12
    8    23        INIT_FCALL                                               'date'
         24        SEND_VAL                                                 'd.m.Y+H%3Ai%3As'
         25        INIT_FCALL                                               'strtotime'
         26        CONCAT                                           ~13     'last+day+of+', !1
         27        CONCAT                                           ~14     ~13, '%2C+23%3A59%3A59'
         28        SEND_VAL                                                 ~14
         29        DO_ICALL                                         $15     
         30        SEND_VAR                                                 $15
         31        DO_ICALL                                         $16     
         32        CONCAT                                           ~17     $16, '%0D%0A'
         33        ECHO                                                     ~17
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.23 ms | 1396 KiB | 17 Q