3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array('impressions' => 0, 'spend' => 09); echo ($row['spend'] > 0) ? $row['spend'] / $row['impressions'] * 1000 : 0;
Output for 7.0.0 - 7.0.2
Parse error: Invalid numeric literal in /in/FJ7Ec on line 2
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
0

preferences:
172.36 ms | 1395 KiB | 37 Q