3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encrypt($plain) { $plain = md5($plain); $V = md5('??????'); //var_dump($V); $rnd = md5(substr(microtime(),11));// hao miao //var_dump(substr(microtime(),11)+mt_rand(0,35)); $cipher = ''; for($i = 0; $i < strlen($plain); $i++) { //32ci $cipher .= ($plain[$i] ^ $rnd[$i]); echo $cipher; } $cipher .= $rnd; echo $cipher; $V .= strrev($V); echo $V; //var_dump($cipher); for($i = 0; $i < strlen($V); $i++) { $cipher[$i] = ($cipher[$i] ^ $V[$i]); } //var_dump($cipher); //var_dump($V); return str_replace('=', '', base64_encode($cipher)); } encrypt('sb') ?>
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
SSSSSSSSSVSSVSSVSSVPSSVPSSVPRSSVPRSSVPRSSVPRSSVPRRSSVPRRRSSVPRRR SSVPRRR PSSVPRRR PSSVPRRR PXSSVPRRR PXUSSVPRRR PXUSSVPRRR PXU SSVPRRR PXU SSVPRRR PXU ]SSVPRRR PXU ]RSSVPRRR PXU ]RPSSVPRRR PXU ]RPSSVPRRR PXU ]RPSSVPRRR PXU ]RPSSVPRRR PXU ]RPRSSVPRRR PXU ]RPRSSVPRRR PXU ]RPR1eb10214ac4619ff5a0935299dc95301df64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 5.3.29
YYTYTSYTSQYTSQYTSQYTSQRYTSQRYTSQRWYTSQRWYTSQRW YTSQRW YTSQRW ZYTSQRW ZYTSQRW ZYYTSQRW ZYYTSQRW ZYYTSQRW ZYYTSQRW ZYZYTSQRW ZYZYTSQRW ZYZWYTSQRW ZYZWYTSQRW ZYZWYTSQRW ZYZWYTSQRW ZYZWYTSQRW ZYZWWYTSQRW ZYZWW[YTSQRW ZYZWW[YTSQRW ZYZWW[1394a0ec0b45c689c0add5b630485a97df64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 5.3.19 - 5.3.28
[[R[RW[RW[RW[RWR[RWRR[RWRR[RWRRV[RWRRV[RWRRV[RWRRV[RWRRV\[RWRRV\[RWRRV\[RWRRV\[RWRRV\S[RWRRV\S [RWRRV\S [RWRRV\S [RWRRV\S P[RWRRV\S PS[RWRRV\S PS[RWRRV\S PS [RWRRV\S PS V[RWRRV\S PS V[RWRRV\S PS VT[RWRRV\S PS VTP[RWRRV\S PS VTP1762c6a77748b975e38b58584e10a36fdf64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 5.3.8 - 5.3.18
UUPUPVUPVUPVRUPVRUPVRUPVRRUPVRRRUPVRRRPUPVRRRPRUPVRRRPR UPVRRRPR YUPVRRRPR YWUPVRRRPR YWVUPVRRRPR YWV_UPVRRRPR YWV_RUPVRRRPR YWV_R UPVRRRPR YWV_R UPVRRRPR YWV_R PUPVRRRPR YWV_R PUPVRRRPR YWV_R P UPVRRRPR YWV_R P WUPVRRRPR YWV_R P WWUPVRRRPR YWV_R P WWWUPVRRRPR YWV_R P WWWUPVRRRPR YWV_R P WWWXUPVRRRPR YWV_R P WWWXQUPVRRRPR YWV_R P WWWXQUPVRRRPR YWV_R P WWWXQUUPVRRRPR YWV_R P WWWXQURUPVRRRPR YWV_R P WWWXQUR4cab7647c76e8acbfc5b651e3a1af67ddf64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 5.2.12 - 5.2.17, 5.3.0 - 5.3.7
  W WZ WZT WZT WZT WZT WZTQ WZTQS WZTQS WZTQS WZTQS  WZTQS  WZTQS  WZTQS   WZTQS   WZTQS  Z WZTQS  ZU WZTQS  ZUP WZTQS  ZUPW WZTQS  ZUPWZ WZTQS  ZUPWZ WZTQS  ZUPWZU WZTQS  ZUPWZU WZTQS  ZUPWZU WZTQS  ZUPWZU  WZTQS  ZUPWZU  WZTQS  ZUPWZU  WZTQS  ZUPWZU S WZTQS  ZUPWZU S WZTQS  ZUPWZU S018cb0171454031631b46fb715332612df64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 5.1.3 - 5.1.6, 5.2.0 - 5.2.11
UUUUURUUR UUR TUUR TUUR TUUR TUUR TQUUR TQWUUR TQWUUR TQWUUR TQW UUR TQW UUR TQW UUR TQW XUUR TQW XUUR TQW XUUR TQW XUUR TQW X^UUR TQW X^ UUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZUUR TQW X^ ZWUUR TQW X^ ZW3cdf102764185244a07d88b2b66710dadf64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.2
QQQQVQV\QV\]QV\]SQV\]SPQV\]SPUQV\]SPUPQV\]SPUPRQV\]SPUPRQV\]SPUPRPQV\]SPUPRPQV\]SPUPRPPQV\]SPUPRPPQQV\]SPUPRPPQQV\]SPUPRPPQQV\]SPUPRPPQYQV\]SPUPRPPQYWQV\]SPUPRPPQYW^QV\]SPUPRPPQYW^TQV\]SPUPRPPQYW^T QV\]SPUPRPPQYW^T QV\]SPUPRPPQYW^T QQV\]SPUPRPPQYW^T QRQV\]SPUPRPPQYW^T QRQV\]SPUPRPPQYW^T QRQV\]SPUPRPPQYW^T QRQV\]SPUPRPPQYW^T QRPQV\]SPUPRPPQYW^T QRPQV\]SPUPRPPQYW^T QRPQV\]SPUPRPPQYW^T QRPc60bd9ebd549d0de81a68e385d393fb3df64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 4.3.1 - 4.3.9
UU U U U U QU QU QWU QWU QWU QWU QW[U QW[QU QW[Q U QW[Q \U QW[Q \U QW[Q \U QW[Q \XU QW[Q \XU QW[Q \XU QW[Q \XU QW[Q \XU QW[Q \XU QW[Q \XU QW[Q \XU QW[Q \X\U QW[Q \X\QU QW[Q \X\QRU QW[Q \X\QRTU QW[Q \X\QRTU QW[Q \X\QRT71d98c7c32a82ce8e999a200d05efd63df64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd
Output for 4.3.0
RRRRRRYRRYRRYRRYSRRYSRRYSURRYSURRYSUTRRYSUTRRYSUTZRRYSUTZWRRYSUTZWRRYSUTZWZRRYSUTZWZSRRYSUTZWZS[RRYSUTZWZS[URRYSUTZWZS[URRYSUTZWZS[URRYSUTZWZS[U]RRYSUTZWZS[U] RRYSUTZWZS[U] VRRYSUTZWZS[U] VRRYSUTZWZS[U] VRRYSUTZWZS[U] V[RRYSUTZWZS[U] V[RRYSUTZWZS[U] V[RRYSUTZWZS[U] V[VRRYSUTZWZS[U] V[VRRYSUTZWZS[U] V[V7d4fae1a40ac0bc1cbc4c2e8263b3644df64dc2eb4a0b85091dd31eb4923eaaccaae3294be13dd19058b0a4be2cd46fd

preferences:
230.82 ms | 403 KiB | 325 Q