3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=300; for($i=0;$i<50;$i++) { print("When they buy the coin for ".$x."yen,"); $x=($x+64)*(100/(100-10)); print("they should sell the coin for ".$x."yen.<br>"); } ?>
Output for 5.6.38, 7.0.0 - 7.0.32, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 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
When they buy the coin for 300yen,they should sell the coin for 404.44444444444yen.<br>When they buy the coin for 404.44444444444yen,they should sell the coin for 520.49382716049yen.<br>When they buy the coin for 520.49382716049yen,they should sell the coin for 649.43758573388yen.<br>When they buy the coin for 649.43758573388yen,they should sell the coin for 792.7084285932yen.<br>When they buy the coin for 792.7084285932yen,they should sell the coin for 951.89825399245yen.<br>When they buy the coin for 951.89825399245yen,they should sell the coin for 1128.7758377694yen.<br>When they buy the coin for 1128.7758377694yen,they should sell the coin for 1325.3064864104yen.<br>When they buy the coin for 1325.3064864104yen,they should sell the coin for 1543.6738737894yen.<br>When they buy the coin for 1543.6738737894yen,they should sell the coin for 1786.3043042104yen.<br>When they buy the coin for 1786.3043042104yen,they should sell the coin for 2055.8936713449yen.<br>When they buy the coin for 2055.8936713449yen,they should sell the coin for 2355.4374126054yen.<br>When they buy the coin for 2355.4374126054yen,they should sell the coin for 2688.2637917838yen.<br>When they buy the coin for 2688.2637917838yen,they should sell the coin for 3058.0708797598yen.<br>When they buy the coin for 3058.0708797598yen,they should sell the coin for 3468.9676441776yen.<br>When they buy the coin for 3468.9676441776yen,they should sell the coin for 3925.5196046417yen.<br>When they buy the coin for 3925.5196046417yen,they should sell the coin for 4432.799560713yen.<br>When they buy the coin for 4432.799560713yen,they should sell the coin for 4996.4439563478yen.<br>When they buy the coin for 4996.4439563478yen,they should sell the coin for 5622.7155070531yen.<br>When they buy the coin for 5622.7155070531yen,they should sell the coin for 6318.5727856146yen.<br>When they buy the coin for 6318.5727856146yen,they should sell the coin for 7091.7475395718yen.<br>When they buy the coin for 7091.7475395718yen,they should sell the coin for 7950.8305995242yen.<br>When they buy the coin for 7950.8305995242yen,they should sell the coin for 8905.3673328047yen.<br>When they buy the coin for 8905.3673328047yen,they should sell the coin for 9965.9637031163yen.<br>When they buy the coin for 9965.9637031163yen,they should sell the coin for 11144.404114574yen.<br>When they buy the coin for 11144.404114574yen,they should sell the coin for 12453.782349526yen.<br>When they buy the coin for 12453.782349526yen,they should sell the coin for 13908.647055029yen.<br>When they buy the coin for 13908.647055029yen,they should sell the coin for 15525.163394477yen.<br>When they buy the coin for 15525.163394477yen,they should sell the coin for 17321.29266053yen.<br>When they buy the coin for 17321.29266053yen,they should sell the coin for 19316.991845033yen.<br>When they buy the coin for 19316.991845033yen,they should sell the coin for 21534.43538337yen.<br>When they buy the coin for 21534.43538337yen,they should sell the coin for 23998.261537078yen.<br>When they buy the coin for 23998.261537078yen,they should sell the coin for 26735.846152309yen.<br>When they buy the coin for 26735.846152309yen,they should sell the coin for 29777.606835899yen.<br>When they buy the coin for 29777.606835899yen,they should sell the coin for 33157.340928776yen.<br>When they buy the coin for 33157.340928776yen,they should sell the coin for 36912.601031974yen.<br>When they buy the coin for 36912.601031974yen,they should sell the coin for 41085.112257749yen.<br>When they buy the coin for 41085.112257749yen,they should sell the coin for 45721.235841943yen.<br>When they buy the coin for 45721.235841943yen,they should sell the coin for 50872.484268826yen.<br>When they buy the coin for 50872.484268826yen,they should sell the coin for 56596.093632028yen.<br>When they buy the coin for 56596.093632028yen,they should sell the coin for 62955.659591143yen.<br>When they buy the coin for 62955.659591143yen,they should sell the coin for 70021.843990159yen.<br>When they buy the coin for 70021.843990159yen,they should sell the coin for 77873.159989065yen.<br>When they buy the coin for 77873.159989065yen,they should sell the coin for 86596.844432294yen.<br>When they buy the coin for 86596.844432294yen,they should sell the coin for 96289.827146994yen.<br>When they buy the coin for 96289.827146994yen,they should sell the coin for 107059.8079411yen.<br>When they buy the coin for 107059.8079411yen,they should sell the coin for 119026.45326789yen.<br>When they buy the coin for 119026.45326789yen,they should sell the coin for 132322.72585322yen.<br>When they buy the coin for 132322.72585322yen,they should sell the coin for 147096.36205913yen.<br>When they buy the coin for 147096.36205913yen,they should sell the coin for 163511.51339903yen.<br>When they buy the coin for 163511.51339903yen,they should sell the coin for 181750.57044337yen.<br>
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 When they buy the coin for 300yen,they should sell the coin for 404.44444444444yen.<br>When they buy the coin for 404.44444444444yen,they should sell the coin for 520.49382716049yen.<br>When they buy the coin for 520.49382716049yen,they should sell the coin for 649.43758573388yen.<br>When they buy the coin for 649.43758573388yen,they should sell the coin for 792.7084285932yen.<br>When they buy the coin for 792.7084285932yen,they should sell the coin for 951.89825399245yen.<br>When they buy the coin for 951.89825399245yen,they should sell the coin for 1128.7758377694yen.<br>When they buy the coin for 1128.7758377694yen,they should sell the coin for 1325.3064864104yen.<br>When they buy the coin for 1325.3064864104yen,they should sell the coin for 1543.6738737894yen.<br>When they buy the coin for 1543.6738737894yen,they should sell the coin for 1786.3043042104yen.<br>When they buy the coin for 1786.3043042104yen,they should sell the coin for 2055.8936713449yen.<br>When they buy the coin for 2055.8936713449yen,they should sell the coin for 2355.4374126054yen.<br>When they buy the coin for 2355.4374126054yen,they should sell the coin for 2688.2637917838yen.<br>When they buy the coin for 2688.2637917838yen,they should sell the coin for 3058.0708797598yen.<br>When they buy the coin for 3058.0708797598yen,they should sell the coin for 3468.9676441776yen.<br>When they buy the coin for 3468.9676441776yen,they should sell the coin for 3925.5196046417yen.<br>When they buy the coin for 3925.5196046417yen,they should sell the coin for 4432.799560713yen.<br>When they buy the coin for 4432.799560713yen,they should sell the coin for 4996.4439563478yen.<br>When they buy the coin for 4996.4439563478yen,they should sell the coin for 5622.7155070531yen.<br>When they buy the coin for 5622.7155070531yen,they should sell the coin for 6318.5727856146yen.<br>When they buy the coin for 6318.5727856146yen,they should sell the coin for 7091.7475395718yen.<br>When they buy the coin for 7091.7475395718yen,they should sell the coin for 7950.8305995242yen.<br>When they buy the coin for 7950.8305995242yen,they should sell the coin for 8905.3673328047yen.<br>When they buy the coin for 8905.3673328047yen,they should sell the coin for 9965.9637031163yen.<br>When they buy the coin for 9965.9637031163yen,they should sell the coin for 11144.404114574yen.<br>When they buy the coin for 11144.404114574yen,they should sell the coin for 12453.782349526yen.<br>When they buy the coin for 12453.782349526yen,they should sell the coin for 13908.647055029yen.<br>When they buy the coin for 13908.647055029yen,they should sell the coin for 15525.163394477yen.<br>When they buy the coin for 15525.163394477yen,they should sell the coin for 17321.29266053yen.<br>When they buy the coin for 17321.29266053yen,they should sell the coin for 19316.991845033yen.<br>When they buy the coin for 19316.991845033yen,they should sell the coin for 21534.43538337yen.<br>When they buy the coin for 21534.43538337yen,they should sell the coin for 23998.261537078yen.<br>When they buy the coin for 23998.261537078yen,they should sell the coin for 26735.846152309yen.<br>When they buy the coin for 26735.846152309yen,they should sell the coin for 29777.606835899yen.<br>When they buy the coin for 29777.606835899yen,they should sell the coin for 33157.340928776yen.<br>When they buy the coin for 33157.340928776yen,they should sell the coin for 36912.601031974yen.<br>When they buy the coin for 36912.601031974yen,they should sell the coin for 41085.112257749yen.<br>When they buy the coin for 41085.112257749yen,they should sell the coin for 45721.235841943yen.<br>When they buy the coin for 45721.235841943yen,they should sell the coin for 50872.484268826yen.<br>When they buy the coin for 50872.484268826yen,they should sell the coin for 56596.093632028yen.<br>When they buy the coin for 56596.093632028yen,they should sell the coin for 62955.659591143yen.<br>When they buy the coin for 62955.659591143yen,they should sell the coin for 70021.843990159yen.<br>When they buy the coin for 70021.843990159yen,they should sell the coin for 77873.159989065yen.<br>When they buy the coin for 77873.159989065yen,they should sell the coin for 86596.844432294yen.<br>When they buy the coin for 86596.844432294yen,they should sell the coin for 96289.827146994yen.<br>When they buy the coin for 96289.827146994yen,they should sell the coin for 107059.8079411yen.<br>When they buy the coin for 107059.8079411yen,they should sell the coin for 119026.45326789yen.<br>When they buy the coin for 119026.45326789yen,they should sell the coin for 132322.72585322yen.<br>When they buy the coin for 132322.72585322yen,they should sell the coin for 147096.36205913yen.<br>When they buy the coin for 147096.36205913yen,they should sell the coin for 163511.51339903yen.<br>When they buy the coin for 163511.51339903yen,they should sell the coin for 181750.57044337yen.<br>

preferences:
203.51 ms | 413 KiB | 247 Q