3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.63 ms | 1398 KiB | 17 Q