3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://open-api.tiktok.com/video/list/'; $data = '{ "access_token": "'.$tik_token.'", "open_id": "'.$tik_open_tk.'", "cursor": 0, "max_count": 1, "fields": ["embed_html", "embed_link", "share_count"] }'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //curl_setopt($ch, CURLOPT_HTTPHEADER, $additional_headers); $server_output = curl_exec ($ch); echo $server_output;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $tik_token in /in/NXign on line 6 Warning: Undefined variable $tik_open_tk in /in/NXign on line 7 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/NXign:13 Stack trace: #0 {main} thrown in /in/NXign on line 13
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:
28.32 ms | 405 KiB | 5 Q