3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 17.92857142857142857142; $y=$(echo "$x" | bc -l) echo "scale=3; ($y+0.0005)/1" | bc -l
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' in /in/epX7u on line 3
Process exited with code 255.

preferences:
164.49 ms | 1399 KiB | 36 Q