3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable1 = "TRUE"; if ($variable1 == "TRUE"){ $todaytime = date("Y-m-d H:i:s", strtotime('-1 days')); } else { $todaytime = date("Y-m-d H:i:s"); } echo $todaytime;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/56eAQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $variable1, !1 = $todaytime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'TRUE'
    5     1        IS_EQUAL                                                 !0, 'TRUE'
          2      > JMPZ                                                     ~3, ->12
    6     3    >   INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '-1+days'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
         11      > JMP                                                      ->16
    8    12    >   INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
   10    16    >   ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.03 ms | 1395 KiB | 17 Q