3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // ksnctf http://ksnctf.sweetduet.info/problem/22 // #22 Square Cipher 60pt $map = explode(' ', 'oomktvziqtaovmmpxzoqrzsxlpwpgoj uDQEMISYnnVYnvyWRhHsDXnSCXAVVZj tZbknedErdpvAwQWpUiLqOxIqpafvXp dXoAVWcKppbEPuaqmXWjXJwRoRFOoEg pDiRUXlQjKJlslskVpGwtljGyVJPxHv bQsQNKxCsdYMdQPJiBmyrsuOrJQOtXg pMekeinUaMoDXqFzweLKipkBuggnsUv eQFYCJSKfBgHaJgZnZoWmOmAOJLVQHi hljrplajyKNXtwmfOjRwOqcqeeplyzy gkFOltsOyrPgIaerIaSjQQaVMyEhfyd vEaRHbBzfrcwJbCZmHdddLpuEJwspbt sXQGkwpKaTZmWJiZzpbkpHNiToawxKn wJpIKbGhnLjVAJNcxrqkKEJCKCOocSv mTRDNDpFtRUmcHoRELeSqXoGUIIsuYu ajeHaSVlQGLaEprSQarDzTomJdAWfqb zIJLHRBXMvNDegYeaoVRDuWBbdSBtLv xIeKdAYwajGHMgRLDGgDinBiLNBgatb kHepNsCQSJjTRmQrCHYWJqIPOVAUOer rvhmZfmogPglGNuLyAuSivBctlvVfzb qBJdHUkSaTArlgkhtHPyGhXOPkwmkBq rvbzZfwvLtTnhyXVHPlwsuGZQnNiNcm yCMtAVwYVgtZHVNznolGMBETIHFmoWj wfezbysbvOzsAhxSZFFAfOouyHldEYh gNHKKSFUtcUxfRyXHMugYBtAxBwDJZh rHmsozuNeoJqyzMDHsNbUDwzaNLtdxr bVmQMHyNndOWCZLnhrPxZXCYLDTWQre aSiEEJjZtoRpUzgsxsiiGzvnRpKLMrk qTzGCKvNhUhjrmCjAdwQAvkgqHyJZLm sSxzwjxAnWesTszIxirRwcWIXUPtwwa nTDEMTRGyhzdCtkTTDWbxdSjsNYlfXz eawtidzosgaofjxxyfcdoiulemirqap' ); $im = imagecreatetruecolor(31, 31); for ($i = 0; $i < 31; ++$i) { for ($j = 0; $j < 31; ++$j) { if (strtoupper($map[$i][$j]) === $map[$i][$j]) { imagesetpixel($im, $i, $j, imagecolorallocate($im, 0, 0, 0)); } else { imagesetpixel($im, $i, $j, imagecolorallocate($im, 255, 255, 255)); } } } header('Content-Type: image/png'); echo imagepng($im); ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in /in/RB6WY:41 Stack trace: #0 {main} thrown in /in/RB6WY on line 41
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function imagecreatetruecolor() in /in/RB6WY on line 41
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: imagecreatetruecolor() in /in/RB6WY on line 41
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: imagecreatetruecolor() in /in/RB6WY on line 41
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: imagecreatetruecolor() in /in/RB6WY on line 41