3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <?php //差分を見て前回から更新があったかどうか確認 $old_article = file_get_contents(''); $new_article = file_get_contents(''); $diff = xdiff_string_diff($old_article, $new_article, 1); if (is_string($diff)) { echo "2 つの記事の差分:\n"; echo $diff; } ?>
based on 4CaeG
Output for 7.0.0 - 7.3.1
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Warning: file_get_contents(): Filename cannot be empty in /in/oURet on line 5 Warning: file_get_contents(): Filename cannot be empty in /in/oURet on line 6 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/oURet:9 Stack trace: #0 {main} thrown in /in/oURet on line 9
Process exited with code 255.
Output for hhvm-3.22.0
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Warning: Filename cannot be empty in /in/oURet on line -1 Warning: Filename cannot be empty in /in/oURet on line -1 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/oURet:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Warning: Filename cannot be empty in /in/oURet on line 5 Warning: Filename cannot be empty in /in/oURet on line 6 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/oURet:9 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Warning: Filename cannot be empty in /in/oURet on line 5 Warning: Filename cannot be empty in /in/oURet on line 6 Fatal error: Call to undefined function xdiff_string_diff() in /in/oURet on line 9
Process exited with code 255.
Output for 5.2.9 - 5.6.30
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Warning: file_get_contents(): Filename cannot be empty in /in/oURet on line 5 Warning: file_get_contents(): Filename cannot be empty in /in/oURet on line 6 Fatal error: Call to undefined function xdiff_string_diff() in /in/oURet on line 9
Process exited with code 255.
Output for 5.0.0 - 5.2.8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Fatal error: Call to undefined function xdiff_string_diff() in /in/oURet on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Fatal error: Call to undefined function: xdiff_string_diff() in /in/oURet on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Fatal error: Call to undefined function: xdiff_string_diff() in /in/oURet on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Fatal error: Call to undefined function: xdiff_string_diff() in /in/oURet on line 9