3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queuedTime = "2011-03-17 06:42:10"; $queuedTime = new DateTime($queuedTime); $queuedTime15 = date_sub($queuedTime,date_interval_create_from_date_string("10 minutes")); $between = " AND BETWEEN " . date("Y-m-d H:i:s", strtotime($queuedTime15)) . " AND " . date("Y-m-d H:i:s", strtotime($queuedTime)); echo $between; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1klsO
function name:  (null)
number of ops:  33
compiled vars:  !0 = $queuedTime, !1 = $queuedTime15, !2 = $between
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2011-03-17+06%3A42%3A10'
    3     1        NEW                                              $4      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    5     5        INIT_FCALL                                               'date_sub'
          6        SEND_VAR                                                 !0
          7        INIT_FCALL                                               'date_interval_create_from_date_string'
          8        SEND_VAL                                                 '10+minutes'
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
    6    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     '+AND+BETWEEN+', $11
         21        CONCAT                                           ~13     ~12, '+AND+'
         22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         24        INIT_FCALL                                               'strtotime'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $14     
         27        SEND_VAR                                                 $14
         28        DO_ICALL                                         $15     
         29        CONCAT                                           ~16     ~13, $15
         30        ASSIGN                                                   !2, ~16
    7    31        ECHO                                                     !2
    8    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.92 ms | 1396 KiB | 21 Q