3v4l.org

run code in 300+ PHP versions simultaneously
<?php //差分を見て前回から更新があったかどうか確認 $old_article = file_get_contents('https://i-bitzedge.com/cron/test/test_old.html'); $new_article = file_get_contents('https://i-bitzedge.com/cron/test/test_new.html'); $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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://i-bitzedge.com/cron/test/test_old.html) is not within the allowed path(s): (/tmp:/in:/etc) in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): Failed to open stream: Operation not permitted in /in/nSCuD on line 4 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(): open_basedir restriction in effect. File(https://i-bitzedge.com/cron/test/test_new.html) is not within the allowed path(s): (/tmp:/in:/etc) in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): Failed to open stream: Operation not permitted in /in/nSCuD on line 5 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/nSCuD:10 Stack trace: #0 {main} thrown in /in/nSCuD on line 10
Process exited with code 255.
Output for 8.0.13
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): Failed to open stream: No such file or directory in /in/nSCuD on line 4 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): Failed to open stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/nSCuD:10 Stack trace: #0 {main} thrown in /in/nSCuD on line 10
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: No such file or directory in /in/nSCuD on line 4 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/nSCuD:10 Stack trace: #0 {main} thrown in /in/nSCuD on line 10
Process exited with code 255.
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://i-bitzedge.com/cron/test/test_old.html) is not within the allowed path(s): (/tmp:/in:/etc) in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: Operation not permitted in /in/nSCuD on line 4 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(): open_basedir restriction in effect. File(https://i-bitzedge.com/cron/test/test_new.html) is not within the allowed path(s): (/tmp:/in:/etc) in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: Operation not permitted in /in/nSCuD on line 5 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/nSCuD:10 Stack trace: #0 {main} thrown in /in/nSCuD on line 10
Process exited with code 255.
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://i-bitzedge.com/cron/test/test_old.html) is not within the allowed path(s): (/tmp:/in) in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: Operation not permitted in /in/nSCuD on line 4 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(): open_basedir restriction in effect. File(https://i-bitzedge.com/cron/test/test_new.html) is not within the allowed path(s): (/tmp:/in) in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: Operation not permitted in /in/nSCuD on line 5 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/nSCuD:10 Stack trace: #0 {main} thrown in /in/nSCuD on line 10
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 5 Fatal error: Uncaught Error: Call to undefined function xdiff_string_diff() in /in/nSCuD:10 Stack trace: #0 {main} thrown in /in/nSCuD on line 10
Process exited with code 255.
Output for 5.4.15 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/nSCuD on line 5 Fatal error: Call to undefined function xdiff_string_diff() in /in/nSCuD on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.14
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: No such file or directory in /in/nSCuD on line 4 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Call to undefined function xdiff_string_diff() in /in/nSCuD on line 10
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: No such file or directory in /in/nSCuD on line 4 Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Call to undefined function xdiff_string_diff() in /in/nSCuD on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: No such file or directory in /in/nSCuD on line 4 Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Call to undefined function: xdiff_string_diff() in /in/nSCuD on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html): failed to open stream: No such file or directory in /in/nSCuD on line 4 Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html): failed to open stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Call to undefined function: xdiff_string_diff() in /in/nSCuD on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: file_get_contents() [http://www.php.net/function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 4 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_old.html) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/nSCuD on line 4 Notice: file_get_contents() [http://www.php.net/function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/nSCuD on line 5 Warning: file_get_contents(https://i-bitzedge.com/cron/test/test_new.html) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/nSCuD on line 5 Fatal error: Call to undefined function: xdiff_string_diff() in /in/nSCuD on line 10

preferences:
264.35 ms | 403 KiB | 370 Q