3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $thisContract['startDate']='2014-12-31'; $thisDate = strtotime($month.'/1/'.$year. ' +1 month'); echo date('Y-m-d',$thisDate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qKmW9
function name:  (null)
number of ops:  17
compiled vars:  !0 = $month, !1 = $year, !2 = $thisContract, !3 = $thisDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12
    3     1        ASSIGN                                                   !1, 2014
    4     2        ASSIGN_DIM                                               !2, 'startDate'
          3        OP_DATA                                                  '2014-12-31'
    6     4        INIT_FCALL                                               'strtotime'
          5        CONCAT                                           ~7      !0, '%2F1%2F'
          6        CONCAT                                           ~8      ~7, !1
          7        CONCAT                                           ~9      ~8, '+%2B1+month'
          8        SEND_VAL                                                 ~9
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !3, $10
    8    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $12     
         15        ECHO                                                     $12
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.84 ms | 1394 KiB | 17 Q