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'); $hasntStarted = ($thisDate<strtotime($thisContract['startDate'])); echo date('Y-m-d',$thisDate); echo ("\n".!$hasntStarted);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5WZv2
function name:  (null)
number of ops:  26
compiled vars:  !0 = $month, !1 = $year, !2 = $thisContract, !3 = $thisDate, !4 = $hasntStarted
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                                           ~8      !0, '%2F1%2F'
          6        CONCAT                                           ~9      ~8, !1
          7        CONCAT                                           ~10     ~9, '+%2B1+month'
          8        SEND_VAL                                                 ~10
          9        DO_ICALL                                         $11     
         10        ASSIGN                                                   !3, $11
    8    11        INIT_FCALL                                               'strtotime'
         12        FETCH_DIM_R                                      ~13     !2, 'startDate'
         13        SEND_VAL                                                 ~13
         14        DO_ICALL                                         $14     
         15        IS_SMALLER                                       ~15     !3, $14
         16        ASSIGN                                                   !4, ~15
   10    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-m-d'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $17     
         21        ECHO                                                     $17
   11    22        BOOL_NOT                                         ~18     !4
         23        CONCAT                                           ~19     '%0A', ~18
         24        ECHO                                                     ~19
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1387 KiB | 17 Q