3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dias_transcurridos($fecha_i,$fecha_f) { $dias = (strtotime($fecha_i)-strtotime($fecha_f))/86400; $dias = abs($dias); $dias = floor($dias); return $dias; }; dias_transcurridos(" 2014-06-01"," 2014-06-02");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6n4t6
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'dias_transcurridos'
          1        SEND_VAL                                                 '+2014-06-01'
          2        SEND_VAL                                                 '+2014-06-02'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function dias_transcurridos:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6n4t6
function name:  dias_transcurridos
number of ops:  21
compiled vars:  !0 = $fecha_i, !1 = $fecha_f, !2 = $dias
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SUB                                              ~5      $3, $4
          9        DIV                                              ~6      ~5, 86400
         10        ASSIGN                                                   !2, ~6
    5    11        INIT_FCALL                                               'abs'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
         15        INIT_FCALL                                               'floor'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !2, $10
    6    19      > RETURN                                                   !2
    7    20*     > RETURN                                                   null

End of function dias_transcurridos

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.98 ms | 1397 KiB | 20 Q