3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'This is a string'; $y = base64_encode($x); $z = base64_decode($y); if ($x != $z) { print 'base64 encoding/decoding broken'; } else { echo "ok"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/omfrZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+is+a+string'
    4     1        INIT_FCALL                                               'base64_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'base64_decode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    7     9        IS_NOT_EQUAL                                             !0, !2
         10      > JMPZ                                                     ~8, ->13
    8    11    >   ECHO                                                     'base64+encoding%2Fdecoding+broken'
         12      > JMP                                                      ->14
   11    13    >   ECHO                                                     'ok'
   12    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.88 ms | 1394 KiB | 17 Q