3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 1; for ($i = 0; $i <= 100; $i++) { list($a, $b) = array($b, $a + $b); echo $b . PHP_EOL; }
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.2 - 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.36, 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.6
2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 102334155 165580141 267914296 433494437 701408733 1134903170 1836311903 2971215073 4807526976 7778742049 12586269025 20365011074 32951280099 53316291173 86267571272 139583862445 225851433717 365435296162 591286729879 956722026041 1548008755920 2504730781961 4052739537881 6557470319842 10610209857723 17167680177565 27777890035288 44945570212853 72723460248141 117669030460994 190392490709135 308061521170129 498454011879264 806515533049393 1304969544928657 2111485077978050 3416454622906707 5527939700884757 8944394323791464 14472334024676221 23416728348467685 37889062373143906 61305790721611591 99194853094755497 160500643816367088 259695496911122585 420196140727489673 679891637638612258 1100087778366101931 1779979416004714189 2880067194370816120 4660046610375530309 7540113804746346429 1.2200160415122E+19 1.9740274219868E+19 3.194043463499E+19 5.1680708854858E+19 8.3621143489848E+19 1.3530185234471E+20 2.1892299583456E+20 3.5422484817926E+20 5.7314784401382E+20 9.2737269219308E+20 1.5005205362069E+21
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 3PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 5PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 8PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 13PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 21PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 34PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 55PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 89PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 144PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 233PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 377PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 610PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 987PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1597PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2584PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 4181PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 6765PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 10946PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 17711PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 28657PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 46368PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 75025PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 121393PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 196418PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 317811PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 514229PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 832040PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1346269PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2178309PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 3524578PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 5702887PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 9227465PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 14930352PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 24157817PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 39088169PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 63245986PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 102334155PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 165580141PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 267914296PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 433494437PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 701408733PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1134903170PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1836311903PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2971215073PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 4807526976PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 7778742049PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 12586269025PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 20365011074PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 32951280099PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 53316291173PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 86267571272PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 139583862445PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 225851433717PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 365435296162PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 591286729879PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 956722026041PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1548008755920PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2504730781961PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 4052739537881PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 6557470319842PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 10610209857723PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 17167680177565PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 27777890035288PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 44945570212853PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 72723460248141PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 117669030460994PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 190392490709135PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 308061521170129PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 498454011879264PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 806515533049393PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1304969544928657PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2111485077978050PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 3416454622906707PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 5527939700884757PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 8944394323791464PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 14472334024676221PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 23416728348467685PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 37889062373143906PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 61305790721611591PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 99194853094755497PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 160500643816367088PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 259695496911122585PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 420196140727489673PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 679891637638612258PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1100087778366101931PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1779979416004714189PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2880067194370816120PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 4660046610375530309PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 7540113804746346429PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1.2200160415122E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1.9740274219868E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 3.194043463499E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 5.1680708854858E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 8.3621143489848E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1.3530185234471E+20PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 2.1892299583456E+20PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 3.5422484817926E+20PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 5.7314784401382E+20PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 9.2737269219308E+20PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/2cTee on line 6 1.5005205362069E+21PHP_EOL

preferences:
270.49 ms | 426 KiB | 377 Q