3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Today is October 26th, 2018 $next_monday = "2018-10-29"; if (date("Y-m-d", strtotime("next monday")) == $next_monday) echo "Pass!";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/HlvZo
function name:  (null)
number of ops:  12
compiled vars:  !0 = $next_monday
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2018-10-29'
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'next+monday'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        IS_EQUAL                                                 !0, $3
          9      > JMPZ                                                     ~4, ->11
    6    10    >   ECHO                                                     'Pass%21'
         11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.41 ms | 1394 KiB | 17 Q