3v4l.org

run code in 300+ PHP versions simultaneously
<?php // MSSQL server side $data = [ 1 => 'hello', 2 => 'world', ]; // Imagine $data above is the array of rows returned by the db query header('Content-Type: application/json'); echo json_encode($data); exit; // IONOS Side $json = file_get_contents('http://your-database-server/some/url/or/other'); $data = json_decode(true); // Now do your updates // NB This is an INSECURE example, people who know the URL can see this data!
Output for rfc.property-hooks, git.master, git.master_jit
{"1":"hello","2":"world"}

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:
45.87 ms | 2686 KiB | 4 Q