3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ctr = 0; while ($ctr < 7) { $RespondentsResultSetArray[$ctr] = array( "Firstname" => "sample", "Lastname" => "name" ); $ctr = $ctr + 1; } foreach ($RespondentsResultSetArray as $key) { echo $key["Firstname"] . ' ' . $key["Lastname"] . ', '; } sqlsrv_free_stmt($stmt); echo implode(', ',array_values($RespondentsResultSetArray));
Output for 7.0.0 - 7.3.0rc4
sample name, sample name, sample name, sample name, sample name, sample name, sample name, Fatal error: Uncaught Error: Call to undefined function sqlsrv_free_stmt() in /in/mgLC2:17 Stack trace: #0 {main} thrown in /in/mgLC2 on line 17
Process exited with code 255.
Output for 5.0.0 - 5.6.28
sample name, sample name, sample name, sample name, sample name, sample name, sample name, Fatal error: Call to undefined function sqlsrv_free_stmt() in /in/mgLC2 on line 17
Process exited with code 255.
Output for 4.4.5 - 4.4.9
sample name, sample name, sample name, sample name, sample name, sample name, sample name, Fatal error: Call to undefined function: sqlsrv_free_stmt() in /in/mgLC2 on line 17
Process exited with code 255.
Output for 4.3.2 - 4.4.4
sample name, sample name, sample name, sample name, sample name, sample name, sample name, Fatal error: Call to undefined function: sqlsrv_free_stmt() in /in/mgLC2 on line 17
Process exited with code 255.
Output for 4.3.0 - 4.3.1
sample name, sample name, sample name, sample name, sample name, sample name, sample name, Fatal error: Call to undefined function: sqlsrv_free_stmt() in /in/mgLC2 on line 17