3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = file_get_contents(" https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg "); $test = base64_encode($test); $test = '<img src="data:image/jpeg;base64,' . $test . '" />'; echo $test; ?>
based on BTZ0h
Output for 7.1.25 - 7.3.1
Warning: file_get_contents(): open_basedir restriction in effect. File( https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg ) is not within the allowed path(s): (/tmp:/in:/etc) in /in/O98cn on line 2 Warning: file_get_contents( https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg ): failed to open stream: Operation not permitted in /in/O98cn on line 2 <img src="data:image/jpeg;base64," />
Output for 7.1.20
Warning: file_get_contents(): open_basedir restriction in effect. File( https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg ) is not within the allowed path(s): (/tmp:/in) in /in/O98cn on line 2 Warning: file_get_contents( https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg ): failed to open stream: Operation not permitted in /in/O98cn on line 2 <img src="data:image/jpeg;base64," />
Output for 7.0.20, 7.1.5 - 7.1.10
Warning: file_get_contents( https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg ): failed to open stream: No such file or directory in /in/O98cn on line 2 <img src="data:image/jpeg;base64," />
Output for 5.3.17 - 7.0.6, 7.1.0
Warning: file_get_contents( https://pbs.twimg.com/media/COMFAk-WoAA4Fsv.jpg ): failed to open stream: No such file or directory in /in/O98cn on line 4 <img src="data:image/jpeg;base64," />