3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Undefined constant "PHPEOL" in /in/q64MG:5 Stack trace: #0 {main} thrown in /in/q64MG on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
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

preferences:
237.22 ms | 410 KiB | 326 Q