3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test( $date ) { $reminder_time = strtotime( str_replace( '-', ' ', $date ) . ', 2015' ); $reminder_time = $reminder_time - ( DAY_IN_SECONDS ); var_dump( ( time() >= $reminder_time ) ); } test( 'nov-21' ); test( 'dec-23' ); test( 'dec-24' ); test( 'dec-25' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/spq6i
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 'nov-21'
          2        DO_FCALL                                      0          
   11     3        INIT_FCALL                                               'test'
          4        SEND_VAL                                                 'dec-23'
          5        DO_FCALL                                      0          
   12     6        INIT_FCALL                                               'test'
          7        SEND_VAL                                                 'dec-24'
          8        DO_FCALL                                      0          
   13     9        INIT_FCALL                                               'test'
         10        SEND_VAL                                                 'dec-25'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/spq6i
function name:  test
number of ops:  21
compiled vars:  !0 = $date, !1 = $reminder_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'strtotime'
          2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '-'
          4        SEND_VAL                                                 '+'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      $2, '%2C+2015'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    5    11        FETCH_CONSTANT                                   ~6      'DAY_IN_SECONDS'
         12        SUB                                              ~7      !1, ~6
         13        ASSIGN                                                   !1, ~7
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'time'
         16        DO_ICALL                                         $9      
         17        IS_SMALLER_OR_EQUAL                              ~10     !1, $9
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
    8    20      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.95 ms | 1399 KiB | 25 Q