3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST["msg"] = range("A", "Z"); $_POST["control"] = range("101", "126"); echo "<pre>"; foreach ( array_map(null, $_POST["msg"], $_POST["control"]) as $var ) { list($mg, $id) = $var; echo $mg, "=", $id, 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.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 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
<pre>A=101 B=102 C=103 D=104 E=105 F=106 G=107 H=108 I=109 J=110 K=111 L=112 M=113 N=114 O=115 P=116 Q=117 R=118 S=119 T=120 U=121 V=122 W=123 X=124 Y=125 Z=126
Output for 4.3.3 - 4.3.9, 5.0.0 - 5.0.1
<pre>A=101 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLB=102 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLC=103 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLD=104 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLE=105 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLF=106 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLG=107 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLH=108 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLI=109 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLJ=110 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLK=111 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLL=112 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLM=113 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLN=114 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLO=115 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLP=116 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLQ=117 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLR=118 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLS=119 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLT=120 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLU=121 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLV=122 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLW=123 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLX=124 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLY=125 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLZ=126 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOL
Output for 4.3.0 - 4.3.2
<pre>A=1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLB= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLC= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLD= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLE= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLF= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLG= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLH= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLI= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLJ= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLK= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLL= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLM= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLN= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLO= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLP= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLQ= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLR= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLS= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLT= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLU= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLV= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLW= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLX= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLY= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOLZ= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vOrMF on line 9 PHP_EOL

preferences:
281.5 ms | 409 KiB | 356 Q