3v4l.org

run code in 300+ PHP versions simultaneously
<?php function strToHex($string){ $hex = ''; for ($i=0; $i<strlen($string); $i++){ $ord = ord($string[$i]); $hexCode = dechex($ord); $hex .= substr('0'.$hexCode, -2); } return strToUpper($hex); } echo strToHex('The MyThemeShop Updater plugin is required for this theme.'); echo "\n"; echo strToHex('You need to <a href="[plugin_url]">connect with your MyThemeShop account</a> to use the current theme.'); echo "\n"; echo strToHex('Connect now');
Output for 5.6.38, 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
546865204D795468656D6553686F70205570646174657220706C7567696E20697320726571756972656420666F722074686973207468656D652E 596F75206E65656420746F203C6120687265663D225B706C7567696E5F75726C5D223E636F6E6E656374207769746820796F7572204D795468656D6553686F70206163636F756E743C2F613E20746F20757365207468652063757272656E74207468656D652E 436F6E6E656374206E6F77
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 546865204D795468656D6553686F70205570646174657220706C7567696E20697320726571756972656420666F722074686973207468656D652E 596F75206E65656420746F203C6120687265663D225B706C7567696E5F75726C5D223E636F6E6E656374207769746820796F7572204D795468656D6553686F70206163636F756E743C2F613E20746F20757365207468652063757272656E74207468656D652E 436F6E6E656374206E6F77

preferences:
153.39 ms | 402 KiB | 208 Q