3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qs = array(30,40,50,60,70,80,90,99); foreach ($qs as $q) { $bonif = pow(2, ($q / 100) ); $salary = $q * (10000 * $bonif); echo $salary . "($bonif)\n"; }
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
369343.32400347(1.2311444133449) 527803.16430916(1.3195079107729) 707106.78118655(1.4142135623731) 909429.93990624(1.5157165665104) 1137153.3548987(1.6245047927125) 1392880.9012738(1.7411011265922) 1679459.3847663(1.8660659830736) 1966323.1409653(1.9861849908741)
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 369343.32400347(1.2311444133449) 527803.16430916(1.3195079107729) 707106.78118655(1.4142135623731) 909429.93990624(1.5157165665104) 1137153.3548987(1.6245047927125) 1392880.9012738(1.7411011265922) 1679459.3847663(1.8660659830736) 1966323.1409653(1.9861849908741)

preferences:
205.8 ms | 402 KiB | 182 Q