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.0.20, 7.1.5 - 7.2.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 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," />