3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_month_first='01'.'-'.date("m").'-'.date("Y"); $current_month_first_stamp=strtotime($current_month_first); $kezdonapszam="5"; $kezdonapszam_int= (int) $kezdonapszam; $kezdonapszam_int=$kezdonapszam_int-1; $kezdo_full=add_date($current_month_first, $kezdonapszam_int); //if (strtotime($kezdo_full)<$current_month_first_stamp) // {$kezdo_full=add_date($kezdo_full,0,1);} print date("Y-m-d",$kezdo_full);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvY7B
function name:  (null)
number of ops:  30
compiled vars:  !0 = $current_month_first, !1 = $current_month_first_stamp, !2 = $kezdonapszam, !3 = $kezdonapszam_int, !4 = $kezdo_full
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        DO_ICALL                                         $5      
          3        CONCAT                                           ~6      '01-', $5
          4        CONCAT                                           ~7      ~6, '-'
          5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y'
          7        DO_ICALL                                         $8      
          8        CONCAT                                           ~9      ~7, $8
          9        ASSIGN                                                   !0, ~9
    3    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !1, $11
    5    14        ASSIGN                                                   !2, '5'
    8    15        CAST                                          4  ~14     !2
         16        ASSIGN                                                   !3, ~14
    9    17        SUB                                              ~16     !3, 1
         18        ASSIGN                                                   !3, ~16
   11    19        INIT_FCALL_BY_NAME                                       'add_date'
         20        SEND_VAR_EX                                              !0
         21        SEND_VAR_EX                                              !3
         22        DO_FCALL                                      0  $18     
         23        ASSIGN                                                   !4, $18
   16    24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y-m-d'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                         $20     
         28        ECHO                                                     $20
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.83 ms | 1387 KiB | 17 Q