3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex('magnet:?xt=urn:btih:49A48ADF414052E4F470A319ED6D200FB4C240B9'); echo "\n"; echo hex2bin('6d61676e65743a3f78743d75726e3a627469683a64393261316231663030336638306463393865663534333438646334626632656638383237313266');
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 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
6d61676e65743a3f78743d75726e3a627469683a34394134384144463431343035324534463437304133313945443644323030464234433234304239 magnet:?xt=urn:btih:d92a1b1f003f80dc98ef54348dc4bf2ef882712f
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 6d61676e65743a3f78743d75726e3a627469683a34394134384144463431343035324534463437304133313945443644323030464234433234304239 magnet:?xt=urn:btih:d92a1b1f003f80dc98ef54348dc4bf2ef882712f

preferences:
168.83 ms | 402 KiB | 212 Q