3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data='iujhklsc'; if ( base64_encode(base64_decode($data, true)) === $data){ echo '$data is valid'; } else { echo '$data is NOT valid'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4fXNZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'iujhklsc'
    5     1        INIT_FCALL                                               'base64_encode'
          2        INIT_FCALL                                               'base64_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        IS_IDENTICAL                                             !0, $3
          9      > JMPZ                                                     ~4, ->12
    6    10    >   ECHO                                                     '%24data+is+valid'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     '%24data+is+NOT+valid'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.31 ms | 1394 KiB | 17 Q