3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $a=fzz_encode('http://blog.csdn.net/fzzwake/article/details/3785884?$#%%'); echo fzz_decode($a); function fzz_encode($str) { for($i=0;$i<strlen($str);$i++) { $restr .= str_pad(dechex(ord($str{$i})),2,0,STR_PAD_LEFT); } return $restr; } function fzz_decode($str) { $arr = str_split($str,2); foreach ((array)$arr as $val) { $restr .= chr(hexdec($val)); } return $restr; }
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: restr in /in/WEuEq on line 6 687474703a2f2f626c6f672e6373646e2e6e65742f667a7a77616b652f61727469636c652f64657461696c732f333738353838343f24232525 Notice: Undefined variable: restr in /in/WEuEq on line 13 http://blog.csdn.net/fzzwake/article/details/3785884?$#%%
Output for hhvm-3.10.0 - 3.12.0
687474703a2f2f626c6f672e6373646e2e6e65742f667a7a77616b652f61727469636c652f64657461696c732f333738353838343f24232525http://blog.csdn.net/fzzwake/article/details/3785884?$#%%
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: restr in /in/WEuEq on line 6 687474703a2f2f626c6f672e6373646e2e6e65742f667a7a77616b652f61727469636c652f64657461696c732f333738353838343f24232525 Notice: Undefined variable: restr in /in/WEuEq on line 13 http://blog.csdn.net/fzzwake/article/details/3785884?$#%%
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: restr in /in/WEuEq on line 6 687474703a2f2f626c6f672e6373646e2e6e65742f667a7a77616b652f61727469636c652f64657461696c732f333738353838343f24232525 Fatal error: Call to undefined function: str_split() in /in/WEuEq on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: restr in /in/WEuEq on line 6 687474703a2f2f626c6f672e6373646e2e6e65742f667a7a77616b652f61727469636c652f64657461696c732f333738353838343f24232525 Fatal error: Call to undefined function: str_split() in /in/WEuEq on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: restr in /in/WEuEq on line 6 687474703a2f2f626c6f672e6373646e2e6e65742f667a7a77616b652f61727469636c652f64657461696c732f333738353838343f24232525 Fatal error: Call to undefined function: str_split() in /in/WEuEq on line 11