3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'rosa'; $hash = md5(sha1($str)); for ($i = 0; $i < 10; ++$i) { $hash = md5(sha1(hash)); echo $hash . "\n"; }
Output for 7.2.0
Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Warning: Use of undefined constant hash - assumed 'hash' (this will throw an Error in a future version of PHP) in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f
Output for 5.3.19 - 7.1.10
Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f Notice: Use of undefined constant hash - assumed 'hash' in /in/f3GLM on line 7 0f9c7d3c1890913c6adc6de35ed2f51f