3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array('George' => 1972, 'Sally' => 1975, 'Deepak' => 1980); $my_array['Lucy'] = 1990; print $my_array['Lucy'] . '</br>'; print $my_array['George'] . '</br>'; var_dump($my_array); $company = "broadstreet"; $key = "elvis437tide"; $action = "projects.json"; $channel = curl_init(); curl_setopt( $channel, CURLOPT_URL, "https://". $company .".teamwork.com/". $action ); curl_setopt( $channel, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $channel, CURLOPT_HTTPHEADER, array( "Authorization: BASIC ". base64_encode( $key .":xxx" )) ); echo curl_exec ( $channel ); curl_close ( $channel ); echo json_decode($channel);
Output for git.master, git.master_jit, rfc.property-hooks
1990</br>1972</br>array(4) { ["George"]=> int(1972) ["Sally"]=> int(1975) ["Deepak"]=> int(1980) ["Lucy"]=> int(1990) } Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/0gUeD:19 Stack trace: #0 {main} thrown in /in/0gUeD on line 19
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:
30.14 ms | 401 KiB | 8 Q