3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // iconv checks if ( !function_exists( 'iconv' ) ) { echo( "JsonFallback: iconv PHP extension is missing\"n ); } if ( iconv( 'UTF-8', 'UTF-16BE', "\x00" ) !== "\x00\x00" ) { echo( "JsonFallback: iconv PHP extension failed to convert U+0000\n" ); } if ( iconv( 'UTF-8', 'UTF-16BE', "\xc4\x80" ) !== "\x01\x00" ) { echo( "JsonFallback: iconv PHP extension failed to convert U+0100\n" ); } if ( iconv( 'UTF-8', 'UTF-16BE', "\xef\xbf\xbf" ) !== "\xff\xff" ) { echo( "JsonFallback: iconv PHP extension failed to convert U+FFFF\n" ); } if ( iconv( 'UTF-8', 'UTF-16BE', "\xf0\x90\x80\x80" ) !== "\xd8\x00\xdc\x00" ) { echo( "JsonFallback: iconv PHP extension failed to convert U+10000\n" ); } if ( @iconv( 'UTF-8', 'UTF-16BE', "\xc0\x80" ) !== false ) { echo( "JsonFallback: iconv PHP extension failed to reject C0 80\n" ); } if ( @iconv( 'UTF-8', 'UTF-16BE', "\xf4\x90\x80\x80" ) !== false ) { echo( "JsonFallback: iconv PHP extension failed to reject F4 90 80 80\n" ); }
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /in/b6ZqX on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected T_NS_SEPARATOR in /in/b6ZqX on line 7
Process exited with code 255.