3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1386 KiB | 17 Q