3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $iptcData = "Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x11\x1c\x02\x19\x00\x04\xC3\xC3\xC3\xB8" . "\x1c\x01\x5A\x00\x03\x1B\x25\x47"; $res = iptcparse( $iptcData ); $keywords = $res['2#025']; var_dump( iconv( "UTF-8", "UTF-8//IGNORE", $keywords ) );
based on IgY5F
Output for 5.3.22 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
Warning: iconv() expects parameter 3 to be string, array given in /in/mIuOV on line 8 NULL
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/mIuOV:8 Stack trace: #0 {main} thrown in /in/mIuOV on line 8
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/mIuOV on line 8
Process exited with code 255.