3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 'asdzxc1234567890'; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL; echo substr($number, 0, 7) . '='. hash('sha256', $number) . PHPEOL;
based on 9qCRt
Output for 7.2.0
Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 5 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 6 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 7 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 8 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 9 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 10 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 11 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 12 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 13 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 14 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 15 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 16 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Warning: Use of undefined constant PHPEOL - assumed 'PHPEOL' (this will throw an Error in a future version of PHP) in /in/q64MG on line 17 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 5 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 6 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 7 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 8 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 9 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 10 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 11 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 12 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 13 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 14 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 15 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 16 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL Notice: Use of undefined constant PHPEOL - assumed 'PHPEOL' in /in/q64MG on line 17 asdzxc1=418e0d9358e9673dc64cd51d98fa250a9e9de0e3fc3666418dd0d7b77561720fPHPEOL