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.¥n"); } ?>
Output for 7.0.0 - 7.0.20, 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.¥nWhen they buy the coin for 404.44444444444yen,they should sell the coin for 520.49382716049yen.¥nWhen they buy the coin for 520.49382716049yen,they should sell the coin for 649.43758573388yen.¥nWhen they buy the coin for 649.43758573388yen,they should sell the coin for 792.7084285932yen.¥nWhen they buy the coin for 792.7084285932yen,they should sell the coin for 951.89825399245yen.¥nWhen they buy the coin for 951.89825399245yen,they should sell the coin for 1128.7758377694yen.¥nWhen they buy the coin for 1128.7758377694yen,they should sell the coin for 1325.3064864104yen.¥nWhen they buy the coin for 1325.3064864104yen,they should sell the coin for 1543.6738737894yen.¥nWhen they buy the coin for 1543.6738737894yen,they should sell the coin for 1786.3043042104yen.¥nWhen they buy the coin for 1786.3043042104yen,they should sell the coin for 2055.8936713449yen.¥nWhen they buy the coin for 2055.8936713449yen,they should sell the coin for 2355.4374126054yen.¥nWhen they buy the coin for 2355.4374126054yen,they should sell the coin for 2688.2637917838yen.¥nWhen they buy the coin for 2688.2637917838yen,they should sell the coin for 3058.0708797598yen.¥nWhen they buy the coin for 3058.0708797598yen,they should sell the coin for 3468.9676441776yen.¥nWhen they buy the coin for 3468.9676441776yen,they should sell the coin for 3925.5196046417yen.¥nWhen they buy the coin for 3925.5196046417yen,they should sell the coin for 4432.799560713yen.¥nWhen they buy the coin for 4432.799560713yen,they should sell the coin for 4996.4439563478yen.¥nWhen they buy the coin for 4996.4439563478yen,they should sell the coin for 5622.7155070531yen.¥nWhen they buy the coin for 5622.7155070531yen,they should sell the coin for 6318.5727856146yen.¥nWhen they buy the coin for 6318.5727856146yen,they should sell the coin for 7091.7475395718yen.¥nWhen they buy the coin for 7091.7475395718yen,they should sell the coin for 7950.8305995242yen.¥nWhen they buy the coin for 7950.8305995242yen,they should sell the coin for 8905.3673328047yen.¥nWhen they buy the coin for 8905.3673328047yen,they should sell the coin for 9965.9637031163yen.¥nWhen they buy the coin for 9965.9637031163yen,they should sell the coin for 11144.404114574yen.¥nWhen they buy the coin for 11144.404114574yen,they should sell the coin for 12453.782349526yen.¥nWhen they buy the coin for 12453.782349526yen,they should sell the coin for 13908.647055029yen.¥nWhen they buy the coin for 13908.647055029yen,they should sell the coin for 15525.163394477yen.¥nWhen they buy the coin for 15525.163394477yen,they should sell the coin for 17321.29266053yen.¥nWhen they buy the coin for 17321.29266053yen,they should sell the coin for 19316.991845033yen.¥nWhen they buy the coin for 19316.991845033yen,they should sell the coin for 21534.43538337yen.¥nWhen they buy the coin for 21534.43538337yen,they should sell the coin for 23998.261537078yen.¥nWhen they buy the coin for 23998.261537078yen,they should sell the coin for 26735.846152309yen.¥nWhen they buy the coin for 26735.846152309yen,they should sell the coin for 29777.606835899yen.¥nWhen they buy the coin for 29777.606835899yen,they should sell the coin for 33157.340928776yen.¥nWhen they buy the coin for 33157.340928776yen,they should sell the coin for 36912.601031974yen.¥nWhen they buy the coin for 36912.601031974yen,they should sell the coin for 41085.112257749yen.¥nWhen they buy the coin for 41085.112257749yen,they should sell the coin for 45721.235841943yen.¥nWhen they buy the coin for 45721.235841943yen,they should sell the coin for 50872.484268826yen.¥nWhen they buy the coin for 50872.484268826yen,they should sell the coin for 56596.093632028yen.¥nWhen they buy the coin for 56596.093632028yen,they should sell the coin for 62955.659591143yen.¥nWhen they buy the coin for 62955.659591143yen,they should sell the coin for 70021.843990159yen.¥nWhen they buy the coin for 70021.843990159yen,they should sell the coin for 77873.159989065yen.¥nWhen they buy the coin for 77873.159989065yen,they should sell the coin for 86596.844432294yen.¥nWhen they buy the coin for 86596.844432294yen,they should sell the coin for 96289.827146994yen.¥nWhen they buy the coin for 96289.827146994yen,they should sell the coin for 107059.8079411yen.¥nWhen they buy the coin for 107059.8079411yen,they should sell the coin for 119026.45326789yen.¥nWhen they buy the coin for 119026.45326789yen,they should sell the coin for 132322.72585322yen.¥nWhen they buy the coin for 132322.72585322yen,they should sell the coin for 147096.36205913yen.¥nWhen they buy the coin for 147096.36205913yen,they should sell the coin for 163511.51339903yen.¥nWhen they buy the coin for 163511.51339903yen,they should sell the coin for 181750.57044337yen.¥n
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.¥nWhen they buy the coin for 404.44444444444yen,they should sell the coin for 520.49382716049yen.¥nWhen they buy the coin for 520.49382716049yen,they should sell the coin for 649.43758573388yen.¥nWhen they buy the coin for 649.43758573388yen,they should sell the coin for 792.7084285932yen.¥nWhen they buy the coin for 792.7084285932yen,they should sell the coin for 951.89825399245yen.¥nWhen they buy the coin for 951.89825399245yen,they should sell the coin for 1128.7758377694yen.¥nWhen they buy the coin for 1128.7758377694yen,they should sell the coin for 1325.3064864104yen.¥nWhen they buy the coin for 1325.3064864104yen,they should sell the coin for 1543.6738737894yen.¥nWhen they buy the coin for 1543.6738737894yen,they should sell the coin for 1786.3043042104yen.¥nWhen they buy the coin for 1786.3043042104yen,they should sell the coin for 2055.8936713449yen.¥nWhen they buy the coin for 2055.8936713449yen,they should sell the coin for 2355.4374126054yen.¥nWhen they buy the coin for 2355.4374126054yen,they should sell the coin for 2688.2637917838yen.¥nWhen they buy the coin for 2688.2637917838yen,they should sell the coin for 3058.0708797598yen.¥nWhen they buy the coin for 3058.0708797598yen,they should sell the coin for 3468.9676441776yen.¥nWhen they buy the coin for 3468.9676441776yen,they should sell the coin for 3925.5196046417yen.¥nWhen they buy the coin for 3925.5196046417yen,they should sell the coin for 4432.799560713yen.¥nWhen they buy the coin for 4432.799560713yen,they should sell the coin for 4996.4439563478yen.¥nWhen they buy the coin for 4996.4439563478yen,they should sell the coin for 5622.7155070531yen.¥nWhen they buy the coin for 5622.7155070531yen,they should sell the coin for 6318.5727856146yen.¥nWhen they buy the coin for 6318.5727856146yen,they should sell the coin for 7091.7475395718yen.¥nWhen they buy the coin for 7091.7475395718yen,they should sell the coin for 7950.8305995242yen.¥nWhen they buy the coin for 7950.8305995242yen,they should sell the coin for 8905.3673328047yen.¥nWhen they buy the coin for 8905.3673328047yen,they should sell the coin for 9965.9637031163yen.¥nWhen they buy the coin for 9965.9637031163yen,they should sell the coin for 11144.404114574yen.¥nWhen they buy the coin for 11144.404114574yen,they should sell the coin for 12453.782349526yen.¥nWhen they buy the coin for 12453.782349526yen,they should sell the coin for 13908.647055029yen.¥nWhen they buy the coin for 13908.647055029yen,they should sell the coin for 15525.163394477yen.¥nWhen they buy the coin for 15525.163394477yen,they should sell the coin for 17321.29266053yen.¥nWhen they buy the coin for 17321.29266053yen,they should sell the coin for 19316.991845033yen.¥nWhen they buy the coin for 19316.991845033yen,they should sell the coin for 21534.43538337yen.¥nWhen they buy the coin for 21534.43538337yen,they should sell the coin for 23998.261537078yen.¥nWhen they buy the coin for 23998.261537078yen,they should sell the coin for 26735.846152309yen.¥nWhen they buy the coin for 26735.846152309yen,they should sell the coin for 29777.606835899yen.¥nWhen they buy the coin for 29777.606835899yen,they should sell the coin for 33157.340928776yen.¥nWhen they buy the coin for 33157.340928776yen,they should sell the coin for 36912.601031974yen.¥nWhen they buy the coin for 36912.601031974yen,they should sell the coin for 41085.112257749yen.¥nWhen they buy the coin for 41085.112257749yen,they should sell the coin for 45721.235841943yen.¥nWhen they buy the coin for 45721.235841943yen,they should sell the coin for 50872.484268826yen.¥nWhen they buy the coin for 50872.484268826yen,they should sell the coin for 56596.093632028yen.¥nWhen they buy the coin for 56596.093632028yen,they should sell the coin for 62955.659591143yen.¥nWhen they buy the coin for 62955.659591143yen,they should sell the coin for 70021.843990159yen.¥nWhen they buy the coin for 70021.843990159yen,they should sell the coin for 77873.159989065yen.¥nWhen they buy the coin for 77873.159989065yen,they should sell the coin for 86596.844432294yen.¥nWhen they buy the coin for 86596.844432294yen,they should sell the coin for 96289.827146994yen.¥nWhen they buy the coin for 96289.827146994yen,they should sell the coin for 107059.8079411yen.¥nWhen they buy the coin for 107059.8079411yen,they should sell the coin for 119026.45326789yen.¥nWhen they buy the coin for 119026.45326789yen,they should sell the coin for 132322.72585322yen.¥nWhen they buy the coin for 132322.72585322yen,they should sell the coin for 147096.36205913yen.¥nWhen they buy the coin for 147096.36205913yen,they should sell the coin for 163511.51339903yen.¥nWhen they buy the coin for 163511.51339903yen,they should sell the coin for 181750.57044337yen.¥n

preferences:
206.01 ms | 413 KiB | 203 Q