3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 1; $y = 1; for($i=1;$i<100;$i++){ $x = $x + 0.025*$y; $y = $y + 1.4*$x; echo 'x: '. $x . ', y: '.$y.PHP_EOL; }
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
x: 1.025, y: 2.435 x: 1.085875, y: 3.955225 x: 1.184755625, y: 5.613882875 x: 1.325102696875, y: 7.469026650625 x: 1.5118283631406, y: 9.5855863590219 x: 1.7514680221162, y: 12.037641589985 x: 2.0524090618658, y: 14.911014276597 x: 2.4251844187807, y: 18.30627246289 x: 2.8828412303529, y: 22.342250185384 x: 3.4413974849875, y: 27.160206664366 x: 4.1204026515967, y: 32.928770376602 x: 4.9436219110117, y: 39.849841052018 x: 5.9398679373122, y: 48.165656164255 x: 7.1440093414186, y: 58.167269242241 x: 8.5981910724746, y: 70.204736743705 x: 10.353309491067, y: 84.6993700312 x: 12.470793741847, y: 102.15848126979 x: 15.024755773592, y: 123.19313935281 x: 18.104584257412, y: 148.53955731319 x: 21.818073190242, y: 179.08485977953 x: 26.29519468473, y: 215.89813233815 x: 31.692647993184, y: 260.26783952861 x: 38.199343981399, y: 313.74692110257 x: 46.043017008964, y: 378.20714491512 x: 55.498195631842, y: 455.9046187997 x: 66.895811101834, y: 549.55875434226 x: 80.634779960391, y: 662.44744628681 x: 97.195966117561, y: 798.5217988514 x: 117.15901108885, y: 962.54441437578 x: 141.22262144824, y: 1160.2560844033 x: 170.22902355832, y: 1398.576717385 x: 205.19344149295, y: 1685.8475354751 x: 247.33962987982, y: 2032.1230173068 x: 298.1427053125, y: 2449.5228047443 x: 359.3807754311, y: 2952.6558903479 x: 433.1971726898, y: 3559.1319321136 x: 522.17547099264, y: 4290.1775915033 x: 629.42991078022, y: 5171.3794665956 x: 758.71439744512, y: 6233.5796230188 x: 914.55388802059, y: 7513.9550662476 x: 1102.4027646768, y: 9057.3189367951 x: 1328.8357380967, y: 10917.68897013 x: 1601.7779623499, y: 13160.17811742 x: 1930.7824152854, y: 15863.27349882 x: 2327.3642527559, y: 19121.583452678 x: 2805.4038390729, y: 23049.14882738 x: 3381.6325597574, y: 27783.43441104 x: 4076.2184200334, y: 33490.140199087 x: 4913.4719250106, y: 40369.000894102 x: 5922.6969473631, y: 48660.77662041 x: 7139.2163628734, y: 58655.679528433 x: 8605.6083510842, y: 70703.531219951 x: 10373.196631583, y: 85226.006504167 x: 12503.846794187, y: 102731.39201603 x: 15072.131594588, y: 123832.37624845 x: 18167.941000799, y: 149267.49364957 x: 21899.628342038, y: 179926.97332843 x: 26397.802675249, y: 216883.89707377 x: 31819.900102093, y: 261431.7572167 x: 38355.694032511, y: 315129.72886222 x: 46233.937254067, y: 379857.24101791 x: 55730.368279514, y: 457879.75660923 x: 67177.362194745, y: 551928.06368188 x: 80975.563786792, y: 665293.85298339 x: 97607.910111377, y: 801944.92713931 x: 117656.53328986, y: 966664.07374512 x: 141823.13513349, y: 1165216.462932 x: 170953.54670679, y: 1404551.4283215 x: 206067.33241483, y: 1693045.6937023 x: 248393.47475738, y: 2040796.5583626 x: 299413.38871645, y: 2459975.3025656 x: 360912.77128059, y: 2965253.1823584 x: 435044.10083955, y: 3574314.9235338 x: 524401.97392789, y: 4308477.6870329 x: 632113.91610371, y: 5193437.1695781 x: 761949.84534317, y: 6260166.9530585 x: 918454.01916963, y: 7546002.579896 x: 1107104.083667, y: 9095948.2970298 x: 1334502.7910928, y: 10964252.20456 x: 1608609.0962068, y: 13216304.939249 x: 1939016.719688, y: 15930928.346812 x: 2337289.9283583, y: 19203134.246514 x: 2817368.2845212, y: 23147449.844844 x: 3396054.5306422, y: 27901926.187743 x: 4093602.6853358, y: 33632969.947213 x: 4934426.9340161, y: 40541167.654835 x: 5947956.125387, y: 48868306.230377 x: 7169663.7811464, y: 58905835.523982 x: 8642309.669246, y: 71005069.060927 x: 10417436.395769, y: 85589480.015004 x: 12557173.396144, y: 103169522.76961 x: 15136411.465384, y: 124360498.82114 x: 18245423.935913, y: 149904092.33142 x: 21993026.244199, y: 180694329.0733 x: 26510384.471031, y: 217808867.33274 x: 31955606.15435, y: 262546715.94883 x: 38519274.05307, y: 316473699.62313 x: 46431116.543649, y: 381477262.78424 x: 55968048.113255, y: 459832530.1428
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/K4RbX on line 7 x: 1.025, y: 2.435PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1.085875, y: 3.955225PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1.184755625, y: 5.613882875PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1.325102696875, y: 7.469026650625PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1.5118283631406, y: 9.5855863590219PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1.7514680221162, y: 12.037641589985PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2.0524090618658, y: 14.911014276597PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2.4251844187807, y: 18.30627246289PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2.8828412303529, y: 22.342250185384PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 3.4413974849875, y: 27.160206664366PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 4.1204026515967, y: 32.928770376602PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 4.9436219110117, y: 39.849841052018PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 5.9398679373122, y: 48.165656164255PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 7.1440093414186, y: 58.167269242241PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 8.5981910724746, y: 70.204736743705PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 10.353309491067, y: 84.6993700312PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 12.470793741847, y: 102.15848126979PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 15.024755773592, y: 123.19313935281PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 18.104584257412, y: 148.53955731319PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 21.818073190242, y: 179.08485977953PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 26.29519468473, y: 215.89813233815PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 31.692647993184, y: 260.26783952861PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 38.199343981399, y: 313.74692110257PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 46.043017008964, y: 378.20714491512PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 55.498195631842, y: 455.9046187997PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 66.895811101834, y: 549.55875434226PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 80.634779960391, y: 662.44744628681PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 97.195966117561, y: 798.5217988514PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 117.15901108885, y: 962.54441437578PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 141.22262144824, y: 1160.2560844033PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 170.22902355832, y: 1398.576717385PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 205.19344149295, y: 1685.8475354751PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 247.33962987982, y: 2032.1230173068PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 298.1427053125, y: 2449.5228047443PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 359.3807754311, y: 2952.6558903479PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 433.1971726898, y: 3559.1319321136PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 522.17547099264, y: 4290.1775915033PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 629.42991078022, y: 5171.3794665956PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 758.71439744512, y: 6233.5796230188PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 914.55388802059, y: 7513.9550662476PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1102.4027646768, y: 9057.3189367951PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1328.8357380967, y: 10917.68897013PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1601.7779623499, y: 13160.17811742PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1930.7824152854, y: 15863.27349882PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2327.3642527559, y: 19121.583452678PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2805.4038390729, y: 23049.14882738PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 3381.6325597574, y: 27783.43441104PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 4076.2184200334, y: 33490.140199087PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 4913.4719250106, y: 40369.000894102PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 5922.6969473631, y: 48660.77662041PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 7139.2163628734, y: 58655.679528433PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 8605.6083510842, y: 70703.531219951PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 10373.196631583, y: 85226.006504167PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 12503.846794187, y: 102731.39201603PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 15072.131594588, y: 123832.37624845PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 18167.941000799, y: 149267.49364957PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 21899.628342038, y: 179926.97332843PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 26397.802675249, y: 216883.89707377PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 31819.900102093, y: 261431.7572167PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 38355.694032511, y: 315129.72886222PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 46233.937254067, y: 379857.24101791PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 55730.368279514, y: 457879.75660923PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 67177.362194745, y: 551928.06368188PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 80975.563786792, y: 665293.85298339PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 97607.910111377, y: 801944.92713931PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 117656.53328986, y: 966664.07374512PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 141823.13513349, y: 1165216.462932PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 170953.54670679, y: 1404551.4283215PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 206067.33241483, y: 1693045.6937023PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 248393.47475738, y: 2040796.5583626PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 299413.38871645, y: 2459975.3025656PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 360912.77128059, y: 2965253.1823584PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 435044.10083955, y: 3574314.9235338PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 524401.97392789, y: 4308477.6870329PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 632113.91610371, y: 5193437.1695781PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 761949.84534317, y: 6260166.9530585PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 918454.01916963, y: 7546002.579896PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1107104.083667, y: 9095948.2970298PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1334502.7910928, y: 10964252.20456PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1608609.0962068, y: 13216304.939249PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 1939016.719688, y: 15930928.346812PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2337289.9283583, y: 19203134.246514PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 2817368.2845212, y: 23147449.844844PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 3396054.5306422, y: 27901926.187743PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 4093602.6853358, y: 33632969.947213PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 4934426.9340161, y: 40541167.654835PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 5947956.125387, y: 48868306.230377PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 7169663.7811464, y: 58905835.523982PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 8642309.669246, y: 71005069.060927PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 10417436.395769, y: 85589480.015004PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 12557173.396144, y: 103169522.76961PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 15136411.465384, y: 124360498.82114PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 18245423.935913, y: 149904092.33142PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 21993026.244199, y: 180694329.0733PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 26510384.471031, y: 217808867.33274PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 31955606.15435, y: 262546715.94883PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 38519274.05307, y: 316473699.62313PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 46431116.543649, y: 381477262.78424PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/K4RbX on line 7 x: 55968048.113255, y: 459832530.1428PHP_EOL