3v4l.org

run code in 300+ PHP versions simultaneously
<?php $menudate=0; if($menudate<1){ if(strtotime("now")>$menudate){ $menudate=strtotime("+2 days"); } } echo $menudate;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 12
filename:       /in/VTcus
function name:  (null)
number of ops:  14
compiled vars:  !0 = $menudate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        IS_SMALLER                                               !0, 1
          2      > JMPZ                                                     ~2, ->12
    4     3    >   INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'now'
          5        DO_ICALL                                         $3      
          6        IS_SMALLER                                               !0, $3
          7      > JMPZ                                                     ~4, ->12
    5     8    >   INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '%2B2+days'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    8    12    >   ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.03 ms | 1399 KiB | 15 Q