3v4l.org

run code in 300+ PHP versions simultaneously
<?php $diff = strtotime($ckout[2].'-'.$ckout[0].'-'.$ckout[1]) - strtotime($ckin[2].'-'.$ckin[0].'-'.$ckin[1]); $days = ceil($diff/(3600*24)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BC63N
function name:  (null)
number of ops:  28
compiled vars:  !0 = $diff, !1 = $ckout, !2 = $ckin, !3 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'strtotime'
          1        FETCH_DIM_R                                      ~4      !1, 2
          2        CONCAT                                           ~5      ~4, '-'
          3        FETCH_DIM_R                                      ~6      !1, 0
          4        CONCAT                                           ~7      ~5, ~6
          5        CONCAT                                           ~8      ~7, '-'
          6        FETCH_DIM_R                                      ~9      !1, 1
          7        CONCAT                                           ~10     ~8, ~9
          8        SEND_VAL                                                 ~10
          9        DO_ICALL                                         $11     
         10        INIT_FCALL                                               'strtotime'
         11        FETCH_DIM_R                                      ~12     !2, 2
         12        CONCAT                                           ~13     ~12, '-'
         13        FETCH_DIM_R                                      ~14     !2, 0
         14        CONCAT                                           ~15     ~13, ~14
         15        CONCAT                                           ~16     ~15, '-'
         16        FETCH_DIM_R                                      ~17     !2, 1
         17        CONCAT                                           ~18     ~16, ~17
         18        SEND_VAL                                                 ~18
         19        DO_ICALL                                         $19     
         20        SUB                                              ~20     $11, $19
         21        ASSIGN                                                   !0, ~20
    3    22        INIT_FCALL                                               'ceil'
         23        DIV                                              ~22     !0, 86400
         24        SEND_VAL                                                 ~22
         25        DO_ICALL                                         $23     
         26        ASSIGN                                                   !3, $23
    4    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.98 ms | 1395 KiB | 17 Q