3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10(sqrt($i % 10) + 1) * 100); }
Output for 8.1.28, 8.2.17 - 8.2.18, 8.3.4 - 8.3.6
float(0) float(30.10299956639812) float(38.27756853378631) float(43.64887715986703) float(47.712125471966246) float(51.001763591395985) float(53.77548578898641) float(56.17870406448103) float(58.302038458345805) float(60.20599913279624)
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.35, 5.5.37 - 5.5.38, 5.6.0 - 5.6.4, 5.6.6 - 5.6.13, 5.6.15, 5.6.17 - 5.6.23, 5.6.26 - 5.6.32, 5.6.35 - 5.6.40, 7.0.0, 7.0.2 - 7.0.3, 7.0.6 - 7.0.33, 7.1.0, 7.1.2, 7.1.4 - 7.1.6, 7.1.8 - 7.1.12, 7.1.14 - 7.1.16, 7.1.19 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
float(0) float(30.102999566398) float(38.277568533786) float(43.648877159867) float(47.712125471966) float(51.001763591396) float(53.775485788986) float(56.178704064481) float(58.302038458346) float(60.205999132796)
Output for 5.5.36, 5.6.5, 5.6.14, 5.6.16, 5.6.24 - 5.6.25, 5.6.33 - 5.6.34, 7.0.1, 7.0.4 - 7.0.5, 7.1.1, 7.1.3, 7.1.7, 7.1.13, 7.1.17 - 7.1.18

Process exited with code 137.

preferences:
221.73 ms | 403 KiB | 331 Q