3v4l.org

run code in 300+ PHP versions simultaneously
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <?php //差分を見て前回から更新があったかどうか確認 $old_article = file_get_contents(''); $new_article = file_get_contents(''); $old_article = mb_convert_encoding($old_article, "SJIS", "UTF-8"); $new_article = mb_convert_encoding($new_article, "SJIS", "UTF-8"); $diff = xdiff_string_diff($old_article, $new_article, 1); if (is_string($diff)) { echo "2 つの差分:\n"; echo $diff; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Fatal error: Uncaught ValueError: Path cannot be empty in /in/bnKWl:5 Stack trace: #0 /in/bnKWl(5): file_get_contents('') #1 {main} thrown in /in/bnKWl on line 5
Process exited with code 255.

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:
52.73 ms | 401 KiB | 8 Q