3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1396 KiB | 17 Q