# 3v4l.org

run code in 200+ php & hhvm versions
```<?php \$x = 4 / (sin(30*pi/180) + sin(40*pi/180) + sin(50*pi/180) + sin(60*pi/180)); var_dump(\$x);```
Output for 7.2.0
Warning: Use of undefined constant pi - assumed 'pi' (this will throw an Error in a future version of PHP) in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Warning: Use of undefined constant pi - assumed 'pi' (this will throw an Error in a future version of PHP) in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Warning: Use of undefined constant pi - assumed 'pi' (this will throw an Error in a future version of PHP) in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Warning: Use of undefined constant pi - assumed 'pi' (this will throw an Error in a future version of PHP) in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Warning: Division by zero in /in/8LffF on line 3 float(INF)
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Warning: A non-numeric value encountered in /in/8LffF on line 3 Warning: Division by zero in /in/8LffF on line 3 float(INF)
Output for 7.0.0 - 7.0.20
Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Warning: Division by zero in /in/8LffF on line 3 float(INF)
Output for 4.3.0 - 5.6.21
Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Notice: Use of undefined constant pi - assumed 'pi' in /in/8LffF on line 3 Warning: Division by zero in /in/8LffF on line 3 bool(false)