3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; for($f = 0; $f <= 20; $f++) { echo "F".$f." = ".($i+pow($i,$f))."\n"; $i++; }
Output for 4.3.6 - 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.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
F0 = 2 F1 = 4 F2 = 12 F3 = 68 F4 = 630 F5 = 7782 F6 = 117656 F7 = 2097160 F8 = 43046730 F9 = 1000000010 F10 = 25937424612 F11 = 743008370700 F12 = 23298085122494 F13 = 793714773254158 F14 = 29192926025390640 F15 = 1152921504606846992 F16 = 4.8661191875667E+19 F17 = 2.1859115597387E+21 F18 = 1.0412735029791E+23 F19 = 5.24288E+24 F20 = 2.7821842944695E+26
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 F0 = 2 F1 = 4 F2 = 12 F3 = 68 F4 = 630 F5 = 7782 F6 = 117656 F7 = 2097160 F8 = 43046730 F9 = 1000000010 F10 = 25937424612 F11 = 743008370700 F12 = 23298085122494 F13 = 793714773254158 F14 = 29192926025390640 F15 = 1152921504606846992 F16 = 4.8661191875667E+19 F17 = 2.1859115597387E+21 F18 = 1.0412735029791E+23 F19 = 5.24288E+24 F20 = 2.7821842944695E+26
Output for 4.3.0 - 4.3.5
F0 = 2 F1 = 4 F2 = 12 F3 = 68 F4 = 630 F5 = 7782 F6 = 117656 F7 = 2097160 F8 = 43046730 F9 = 1000000010 F10 = 25937424612 F11 = 743008370700 F12 = 23298085122494 F13 = 793714773254158 F14 = 29192926025390639 F15 = 1152921504606846992 F16 = 4.8661191875667E+19 F17 = 2.1859115597387E+21 F18 = 1.0412735029791E+23 F19 = 5.24288E+24 F20 = 2.7821842944695E+26

preferences:
217.24 ms | 402 KiB | 386 Q