3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = strtotime("2014-07-11"); $d2 = strtotime(date('Y-m-d')); if($d1 < $d2) echo "atualiza"; else echo "nao";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
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: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tNtPA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $d1, !1 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-07-11'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'strtotime'
          5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    6    11        IS_SMALLER                                               !0, !1
         12      > JMPZ                                                     ~7, ->15
    7    13    >   ECHO                                                     'atualiza'
         14      > JMP                                                      ->16
    9    15    >   ECHO                                                     'nao'
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1395 KiB | 17 Q