3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo max(floor((strtotime('2017-07-07') - time()) / 86400), 1); preg_match('#([0-9]+)\-([0-9]+)#', '3-5 dnů', $maa); var_dump($maa);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fAjDa
function name:  (null)
number of ops:  24
compiled vars:  !0 = $maa
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-07'
          4        DO_ICALL                                         $1      
          5        INIT_FCALL                                               'time'
          6        DO_ICALL                                         $2      
          7        SUB                                              ~3      $1, $2
          8        DIV                                              ~4      ~3, 86400
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
    5    15        INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%23%28%5B0-9%5D%2B%29%5C-%28%5B0-9%5D%2B%29%23'
         17        SEND_VAL                                                 '3-5+dn%C5%AF'
         18        SEND_REF                                                 !0
         19        DO_ICALL                                                 
    6    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.96 ms | 1386 KiB | 25 Q