3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($num=10; $num <= 100; $num += 10) { echo "$num converted to fahrenheit is " . (($num * 9) / 5) + 32 . "</br>"; }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
10 converted to fahrenheit is 50</br>20 converted to fahrenheit is 68</br>30 converted to fahrenheit is 86</br>40 converted to fahrenheit is 104</br>50 converted to fahrenheit is 122</br>60 converted to fahrenheit is 140</br>70 converted to fahrenheit is 158</br>80 converted to fahrenheit is 176</br>90 converted to fahrenheit is 194</br>100 converted to fahrenheit is 212</br>
Output for 7.4.0 - 7.4.33
Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /in/QFTfO on line 3 Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 42</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 52</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 62</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 72</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 82</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 92</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 102</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 112</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 122</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 132</br>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.3.32 - 7.3.33
42</br>52</br>62</br>72</br>82</br>92</br>102</br>112</br>122</br>132</br>
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 42</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 52</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 62</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 72</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 82</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 92</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 102</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 112</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 122</br> Notice: A non well formed numeric value encountered in /in/QFTfO on line 3 132</br>

preferences:
267.88 ms | 404 KiB | 372 Q