3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sF="PCT4BA6ODSE_"; $s21=strtolower($sF[4].$sF[5].$sF[9].$sF[10].$sF[6].$sF[3].$sF[11].$sF[8].$sF[10].$sF[1].$sF[7].$sF[8].$sF[10]); $s20=strtoupper($sF[11].$sF[0].$sF[7].$sF[9].$sF[2]); var_dump($sF, $s21, $s20, "${$s20}['n642afe']"); //if (isset(${$s20}['n642afe'])) {var_dump($s21(${$s20}['n642afe']));} ?>
Output for 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/gdb5t on line 7 Warning: Array to string conversion in /in/gdb5t on line 7 string(12) "PCT4BA6ODSE_" string(13) "base64_decode" string(5) "_POST" string(16) "Array['n642afe']"
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.29
Warning: Array to string conversion in /in/gdb5t on line 7 string(12) "PCT4BA6ODSE_" string(13) "base64_decode" string(5) "_POST" string(16) "Array['n642afe']"
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Notice: Array to string conversion in /in/gdb5t on line 7 string(12) "PCT4BA6ODSE_" string(13) "base64_decode" string(5) "_POST" string(16) "Array['n642afe']"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 7.3.32 - 7.3.33
string(12) "PCT4BA6ODSE_" string(13) "base64_decode" string(5) "_POST" string(16) "Array['n642afe']"

preferences:
200.5 ms | 403 KiB | 315 Q