3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $utf8=false; $solution_file = file_get_contents("http://www.yoire.com/img/v/nice_yoire_xxed_by_Mawekl.jpg"); $solution_bytes = substr($solution_file,0,4); $solution_b64 = Encoder::data2base64($solution_bytes,$utf8); print "La solución es: [GUESS ME!]"; // sorry, I mean $solution_b64 X"DDD print "<br><br>"; print Challenges::solutionBox(); print Challenges::checkSolution($solution_b64); ?> <a href="<?=$_SERVER["PHP_SELF"]?>?showSource">Ver código fuente</a> <?php if(Common::getString("showSource")!==false) { print "<hr>"; highlight_file(__FILE__); } print Website::footer(); ?> </body> </html>
based on KDCd8
Output for 7.0.4, 7.0.20, 7.1.5 - 7.2.0
<html> <head> <title>Online PHP Script Execution</title> </head> <body> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/mVbuO on line 8 Warning: file_get_contents(http://www.yoire.com/img/v/nice_yoire_xxed_by_Mawekl.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/mVbuO on line 8 Fatal error: Uncaught Error: Class 'Encoder' not found in /in/mVbuO:10 Stack trace: #0 {main} thrown in /in/mVbuO on line 10
Process exited with code 255.
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
<html> <head> <title>Online PHP Script Execution</title> </head> <body> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/mVbuO on line 8 Warning: file_get_contents(http://www.yoire.com/img/v/nice_yoire_xxed_by_Mawekl.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/mVbuO on line 8 Fatal error: Uncaught Error: Class 'Encoder' not found in /in/mVbuO:10 Stack trace: #0 {main} thrown in /in/mVbuO on line 10
Process exited with code 255.
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28
<html> <head> <title>Online PHP Script Execution</title> </head> <body> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/mVbuO on line 8 Warning: file_get_contents(http://www.yoire.com/img/v/nice_yoire_xxed_by_Mawekl.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/mVbuO on line 8 Fatal error: Class 'Encoder' not found in /in/mVbuO on line 10
Process exited with code 255.
Output for 5.3.20 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
<html> <head> <title>Online PHP Script Execution</title> </head> <body> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/mVbuO on line 8 Warning: file_get_contents(http://www.yoire.com/img/v/nice_yoire_xxed_by_Mawekl.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/mVbuO on line 8 Fatal error: Class 'Encoder' not found in /in/mVbuO on line 10
Process exited with code 255.