3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = []; $s = microtime(true); for ($i = 0; $i < 1000000; $i++) $name = isset($input['name']) ? $input['name']:'John'; var_dump(microtime(true)-$s);
based on rUqnO
Output for 7.1.0
float(0.030633926391602)
Output for 7.0.14
float(0.029626846313477)
Output for 7.0.6
float(0.01728892326355)
Output for 7.0.5
float(0.028305053710938)
Output for 7.0.4
float(0.017189979553223)
Output for 7.0.3
float(0.021775007247925)
Output for 7.0.2
float(0.02380895614624)
Output for 7.0.1
float(0.017250061035156)
Output for 7.0.0
float(0.021448850631714)
Output for 5.6.28
float(0.10128283500671)
Output for 5.6.21
float(0.061076164245605)
Output for 5.6.20
float(0.070804119110107)
Output for 5.6.19
float(0.075937986373901)
Output for 5.6.18
float(0.062460899353027)
Output for 5.6.17
float(0.072690963745117)
Output for 5.6.16
float(0.06016206741333)
Output for 5.6.15
float(0.064489126205444)
Output for 5.6.14
float(0.076404094696045)
Output for 5.6.13
float(0.066243886947632)
Output for 5.6.12
float(0.076620101928711)
Output for 5.6.11
float(0.073848009109497)
Output for 5.6.10
float(0.07754111289978)
Output for 5.6.9
float(0.061563968658447)
Output for 5.6.8
float(0.065154075622559)
Output for 5.5.35
float(0.070881843566895)
Output for 5.5.34
float(0.059746980667114)
Output for 5.5.33
float(0.072229862213135)
Output for 5.5.32
float(0.061832904815674)
Output for 5.5.31
float(0.075163841247559)
Output for 5.5.30
float(0.081875085830688)
Output for 5.5.29
float(0.072094917297363)
Output for 5.5.28
float(0.080543994903564)
Output for 5.5.27
float(0.078066110610962)
Output for 5.5.26
float(0.078691005706787)
Output for 5.5.25
float(0.063184976577759)
Output for 5.5.24
float(0.07897686958313)
Output for 5.4.45
float(0.20835304260254)
Output for 5.4.44
float(0.16096210479736)
Output for 5.4.43
float(0.15092802047729)
Output for 5.4.42
float(0.085581064224243)
Output for 5.4.41
float(0.080292940139771)
Output for 5.4.40
float(0.17458415031433)
Output for 5.4.39
float(0.11922001838684)
Output for 5.4.38
float(0.16349816322327)
Output for 5.4.37
float(0.09427285194397)
Output for 5.4.36
float(0.087823867797852)
Output for 5.4.35
float(0.13657784461975)
Output for 5.4.34
float(0.091097831726074)
Output for 5.4.32
float(0.077301979064941)
Output for 5.4.31
float(0.073667049407959)
Output for 5.4.30
float(0.063711881637573)
Output for 5.4.29
float(0.062804937362671)
Output for 5.4.28
float(0.080862045288086)
Output for 5.4.27
float(0.066518068313599)
Output for 5.4.26
float(0.06807017326355)
Output for 5.4.25
float(0.062218189239502)
Output for 5.4.24
float(0.062341928482056)
Output for 5.4.23
float(0.097512006759644)
Output for 5.4.22
float(0.062557935714722)
Output for 5.4.21
float(0.064781904220581)
Output for 5.4.20
float(0.068892002105713)
Output for 5.4.19
float(0.062335014343262)
Output for 5.4.18
float(0.063414096832275)
Output for 5.4.17
float(0.063377857208252)
Output for 5.4.16
float(0.062816858291626)
Output for 5.4.15
float(0.070006847381592)
Output for 5.4.14
float(0.0748131275177)
Output for 5.4.13
float(0.064188003540039)
Output for 5.4.12
float(0.064466953277588)
Output for 5.4.11
float(0.06651496887207)
Output for 5.4.10
float(0.084179878234863)
Output for 5.4.9
float(0.069744110107422)
Output for 5.4.8
float(0.063905000686646)
Output for 5.4.7
float(0.083550930023193)
Output for 5.4.6
float(0.080919981002808)
Output for 5.4.5
float(0.064911842346191)
Output for 5.4.4
float(0.06404709815979)
Output for 5.4.3
float(0.064099073410034)
Output for 5.4.2
float(0.063436031341553)
Output for 5.4.1
float(0.062775135040283)
Output for 5.4.0
float(0.082008838653564)
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/17uER on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/17uER on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/17uER on line 3
Process exited with code 255.