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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.53 ms | 1394 KiB | 17 Q