3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host= '185.30.146.120'; $username = 'arenssql1'; $pwd= 'Arensi'; $db='arenssql1'; $con=mysqli_connect($host,$username,$pwd,$db) or die('Unable to connect'); if(mysqli_connect_error($con)) { echo "Failed to connect"; } $query=mysqli_query($con, "SELECT * FROM news"); if($query) { while($row-mysqli_fetch_array($query)) { $flag[] =$row; } print(json_encode($flag)); } mysqli_close(con); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/LTOEO:8 Stack trace: #0 {main} thrown in /in/LTOEO on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.55 ms | 401 KiB | 8 Q