3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo max(floor((strtotime('2017-07-12') - time()) / 86400), 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kFsFQ
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'max'
          1        INIT_FCALL                                               'floor'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '2017-07-12'
          4        DO_ICALL                                         $0      
          5        INIT_FCALL                                               'time'
          6        DO_ICALL                                         $1      
          7        SUB                                              ~2      $0, $1
          8        DIV                                              ~3      ~2, 86400
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $5      
         14        ECHO                                                     $5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.07 ms | 1394 KiB | 21 Q