3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 10; $monthName = date('M', strtotime('2012-'.$month.'-01')); echo $monthName.'<br />'; echo strtotime('first day of '.$monthName).'<br />'; echo strtotime('last day of '.$monthName).'<br />';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ES67
function name:  (null)
number of ops:  26
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, '%3Cbr+%2F%3E'
         12        ECHO                                                     ~8
    7    13        INIT_FCALL                                               'strtotime'
         14        CONCAT                                           ~9      'first+day+of+', !1
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     $10, '%3Cbr+%2F%3E'
         18        ECHO                                                     ~11
    8    19        INIT_FCALL                                               'strtotime'
         20        CONCAT                                           ~12     'last+day+of+', !1
         21        SEND_VAL                                                 ~12
         22        DO_ICALL                                         $13     
         23        CONCAT                                           ~14     $13, '%3Cbr+%2F%3E'
         24        ECHO                                                     ~14
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.4 ms | 1395 KiB | 17 Q