3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $ch = curl_init( "https://api.myseotool.com/v2/campaigns" ); curl_setopt($ch, CURLOPT_USERPWD, '6619e67bc730e0b75c42c268bbf0e707'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( $data ) ); $response = curl_exec($ch); print_r( json_decode($response));

preferences:
37.13 ms | 402 KiB | 5 Q