3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('y-n'); $cardDate = sprintf('%s-%s', 16, 1); if ($currentDate > $cardDate) { echo "FAIL"; return; } echo 'OK';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cN1ha
function name:  (null)
number of ops:  16
compiled vars:  !0 = $currentDate, !1 = $cardDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'y-n'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'sprintf'
          5        SEND_VAL                                                 '%25s-%25s'
          6        SEND_VAL                                                 16
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    6    10        IS_SMALLER                                               !1, !0
         11      > JMPZ                                                     ~6, ->14
    7    12    >   ECHO                                                     'FAIL'
    8    13      > RETURN                                                   null
   10    14    >   ECHO                                                     'OK'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.53 ms | 1394 KiB | 17 Q