3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147 ms | 1386 KiB | 17 Q