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