3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = base64_decode('R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs='); var_dump(mime_content_type('data://text/plain;base64,' . base64_encode($string)));
based on 1inZs
Output for 5.3.6 - 5.6.28, 7.0.0 - 7.1.0
string(9) "image/gif"
Output for hhvm-3.12.0
Warning: Failed identify data 0:(null) in /in/osJqU on line 4 string(0) ""
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.5
Warning: mime_content_type(): File or path not found 'data://text/plain;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=' in /in/osJqU on line 4 bool(false)
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function mime_content_type() in /in/osJqU on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mime_content_type() in /in/osJqU on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mime_content_type() in /in/osJqU on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mime_content_type() in /in/osJqU on line 4