3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = sprintf('%04d-%02d', 2016, 02); $begin_date = $date . '-01'; $end_date = $date . '-' . date('t', strtotime($date . '-05')); var_dump($begin_date); var_dump($end_date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EdE6f
function name:  (null)
number of ops:  26
compiled vars:  !0 = $date, !1 = $begin_date, !2 = $end_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%2504d-%2502d'
          2        SEND_VAL                                                 2016
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    5     6        CONCAT                                           ~5      !0, '-01'
          7        ASSIGN                                                   !1, ~5
    6     8        CONCAT                                           ~7      !0, '-'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 't'
         11        INIT_FCALL                                               'strtotime'
         12        CONCAT                                           ~8      !0, '-05'
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     ~7, $10
         18        ASSIGN                                                   !2, ~11
    8    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.03 ms | 1395 KiB | 21 Q