3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeEnd = '2013-08-12 01:15:23'; $toHour = 10; $timeStart = date('Y-m-d H:i:s', strtotime($timeEnd) - $toHour * 3600); echo "Fetch data between $timeStart to $timeEnd";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lQbG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $timeEnd, !1 = $toHour, !2 = $timeStart
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2013-08-12+01%3A15%3A23'
    4     1        ASSIGN                                                   !1, 10
    6     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        MUL                                              ~6      !1, 3600
          8        SUB                                              ~7      $5, ~6
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    8    12        ROPE_INIT                                     4  ~11     'Fetch+data+between+'
         13        ROPE_ADD                                      1  ~11     ~11, !2
         14        ROPE_ADD                                      2  ~11     ~11, '+to+'
         15        ROPE_END                                      3  ~10     ~11, !0
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.45 ms | 1394 KiB | 17 Q