3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = (new DateTime())->format('Y-m-d H:i:s'); $expires = (new DateTime('+10 minutes'))->format('Y-m-d H:i:s'); echo $now . "\n"; echo $expires . "\n"; var_dump($now >= $expires); var_dump($now <= $expires);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q0aKF
function name:  (null)
number of ops:  26
compiled vars:  !0 = $now, !1 = $expires
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $2, 'format'
          3        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !0, $4
    4     6        NEW                                              $6      'DateTime'
          7        SEND_VAL_EX                                              '%2B10+minutes'
          8        DO_FCALL                                      0          
          9        INIT_METHOD_CALL                                         $6, 'format'
         10        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         11        DO_FCALL                                      0  $8      
         12        ASSIGN                                                   !1, $8
    6    13        CONCAT                                           ~10     !0, '%0A'
         14        ECHO                                                     ~10
    7    15        CONCAT                                           ~11     !1, '%0A'
         16        ECHO                                                     ~11
    9    17        INIT_FCALL                                               'var_dump'
         18        IS_SMALLER_OR_EQUAL                              ~12     !1, !0
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'var_dump'
         22        IS_SMALLER_OR_EQUAL                              ~14     !0, !1
         23        SEND_VAL                                                 ~14
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.56 ms | 1395 KiB | 15 Q