3v4l.org

run code in 300+ PHP versions simultaneously
<?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 ( $rv = @iconv( 'UTF-8', 'UTF-16BE', "\xc0\x80" ) !== false ) { echo( "JsonFallback: iconv PHP extension failed to reject C0 80\n" ); var_dump( $rv ); } if ( $rv = @iconv( 'UTF-8', 'UTF-16BE', "\xf4\x90\x80\x80" ) !== false ) { echo( "JsonFallback: iconv PHP extension failed to reject F4 90 80 80\n" ); var_dump( $rv ); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "UTF-16BE" is not allowed in /in/H6fhf on line 7 JsonFallback: iconv PHP extension failed to convert U+0000 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "UTF-16BE" is not allowed in /in/H6fhf on line 10 JsonFallback: iconv PHP extension failed to convert U+0100 Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "UTF-16BE" is not allowed in /in/H6fhf on line 13 JsonFallback: iconv PHP extension failed to convert U+FFFF Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "UTF-16BE" is not allowed in /in/H6fhf on line 16 JsonFallback: iconv PHP extension failed to convert U+10000

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.31 ms | 402 KiB | 8 Q