3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 05; $day = 07; $year = 2015; $dateString = $month . $day . $year; $exp = new DateTime($dateString); $now = new DateTime(); if ( $exp < $now ) echo "in future"; else echo "in past";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gp7dC
function name:  (null)
number of ops:  19
compiled vars:  !0 = $month, !1 = $day, !2 = $year, !3 = $dateString, !4 = $exp, !5 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, 7
    5     2        ASSIGN                                                   !2, 2015
    6     3        CONCAT                                           ~9      !0, !1
          4        CONCAT                                           ~10     ~9, !2
          5        ASSIGN                                                   !3, ~10
    7     6        NEW                                              $12     'DateTime'
          7        SEND_VAR_EX                                              !3
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !4, $12
    8    10        NEW                                              $15     'DateTime'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !5, $15
   10    13        IS_SMALLER                                               !4, !5
         14      > JMPZ                                                     ~18, ->17
   11    15    >   ECHO                                                     'in+future'
         16      > JMP                                                      ->18
   13    17    >   ECHO                                                     'in+past'
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.87 ms | 1394 KiB | 13 Q