3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $konstanty = array( 267, 51, 162, 131, 389, 71, 59, 164, 285, 5, 20, 100, 94, 224, 245, 121, 2, 234, 236, 342, 78, 33, 35, 3, 68, 2 ); $kostanty = array_map(function ($i) {return $i/3421;}, $konstanty); $x = []; foreach ($kostanty as $key => $konstanta) { $x[chr(ord('A')+$key)] = $konstanta; } echo json_encode($x);
Output for 7.1.0 - 7.2.0
{"A":0.07804735457468577,"B":0.014907921660333235,"C":0.04735457468576439,"D":0.038292896813797134,"E":0.11370944168371822,"F":0.02075416544869921,"G":0.017246419175679626,"H":0.04793919906460099,"I":0.08330897398421515,"J":0.0014615609470914938,"K":0.005846243788365975,"L":0.029231218941829874,"M":0.02747734580532008,"N":0.06547793042969892,"O":0.07161648640748319,"P":0.03536977491961415,"Q":0.0005846243788365975,"R":0.06840105232388191,"S":0.0689856767027185,"T":0.09997076878105816,"U":0.0228003507746273,"V":0.00964630225080386,"W":0.010230926629640456,"X":0.0008769365682548962,"Y":0.019877228880444315,"Z":0.0005846243788365975}
Output for 5.4.0 - 7.0.20
{"A":0.078047354574686,"B":0.014907921660333,"C":0.047354574685764,"D":0.038292896813797,"E":0.11370944168372,"F":0.020754165448699,"G":0.01724641917568,"H":0.047939199064601,"I":0.083308973984215,"J":0.0014615609470915,"K":0.005846243788366,"L":0.02923121894183,"M":0.02747734580532,"N":0.065477930429699,"O":0.071616486407483,"P":0.035369774919614,"Q":0.0005846243788366,"R":0.068401052323882,"S":0.068985676702719,"T":0.099970768781058,"U":0.022800350774627,"V":0.0096463022508039,"W":0.01023092662964,"X":0.0008769365682549,"Y":0.019877228880444,"Z":0.0005846243788366}