3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS['_start_time'] = microtime(true); echo "*** Testing fgetc() : usage variations ***\n"; echo "-- Testing fgetc() with files opened with different read modes --\n"; $file_modes = array( "a+", "a+b", "a+t","x+", "x+b", "x+t","w+", "w+b", "w+t" ); $filename = __DIR__."non-exist.tmp"; function &test() : string {} function &gen() { yield $str[0]; } try { $str = "foo"; } catch (Error $e) { } var_dump($filename); var_dump($str); $x1=$filename; $x2=$str; var_dump(strcmp($x1,$x2));
Output for git.master, git.master_jit
*** Testing fgetc() : usage variations *** -- Testing fgetc() with files opened with different read modes -- string(16) "/innon-exist.tmp" string(3) "foo" int(-3606017)

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:
42.75 ms | 405 KiB | 5 Q