3v4l.org

run code in 300+ PHP versions simultaneously
<?php include"requirements.php"; include"search.php"; function run($target_name){ global $host; $nama=nama(); $random_userid=random(32); $create=create_device_id($random_userid); $authorization_sementara=json_decode($create,true)['authToken']; if($authorization_sementara==""){ echo "error authorization token is null\n"; } $save_profil=save_profile_request_v2($authorization_sementara,$random_userid); if(json_decode($save_profil,true)['isSuccess'] != true){ echo "error in save character line 28\n"; echo $save_profil; } $copy_character=copy_character_by_hashcode($authorization_sementara,$random_userid); $account_user_v5=curl(headerss($authorization_sementara,$random_userid) , 'https://gw-napi.zepeto.io/AccountUser_v5', '{"creatorAllItemsVersion":"_","creatorHotItemGroupId":"_","creatorHotItemsVersion":"_","creatorNewItemsVersion":"_","params":{"appVersion":"3.31.100","itemVersion":"_","language":"_","platform":"_"},"timeZone":"Asia/Bangkok"}'); $cari=search_userid($target_name); $userid=json_decode($cari,true)['userid']; $follow=follow($userid,$authorization_sementara,$random_userid); if(json_decode($follow,true)["isSuccess"]==true){ echo "follow success\n"; } /*$bio=curl(headerss($authorization_sementara,$random_userid),$host."/SaveProfileRequest_v2",'{"job":"","name":"'.$nama.'","nationality":"","statusMessage":"order panel di @zepetod_ofc (telegram)"}'); if(json_decode($bio,true)["isSuccess"]==true){ echo ", bio successfully added\n"; }*/ } function create_device_id($random){ global $host; $page="/DeviceAuthenticationRequest"; $send_curl=curl(headerss('',$random),$host."/DeviceAuthenticationRequest",'{"deviceId":"'.$random.'"}'); return $send_curl; } function save_profile_request_v2($authorization_sementara,$random_userid){ global $nama,$host; $name=$nama; //post method $run_curl=curl(headerss($authorization_sementara,$random_userid),$host."/SaveProfileRequest_v2",'{"job":"","name":"' . $name . '","nationality":"","statusMessage":""}'); return $run_curl; } function copy_character_by_hashcode($authorization_sementara,$random_userid){ global $host; $copy=curl(headerss($authorization_sementara,$random_userid),$host."/CopyCharacterByHashcode",'{"hashCode":"ZPT221","characterId":""}'); return $copy; } function follow($target,$authorization_sementara,$random_userid){ global $host; $follow=curl(headerss($authorization_sementara,$random_userid),$host."/FollowRequest_v2",'{"followUserId":"' . $target . '"}'); return $follow; } function search_userid($nama){ return search($nama); //file_get_contents("https://api.mrmajorexe.my.id/cari.php?username=$nama"); } function v2baru($nama){ $curl=search($nama); //file_get_contents("https://api.mrmajorexe.my.id/cari.php?username=$nama"); // echo $curl; return json_decode($curl,true)["follower"]; } //echo v2baru("syaiful");exit; if($argv[1]==""){ $username=readline("target id: "); $tg_follower=readline("jumlah add follower: "); //search target $search_target=search($username); $userid=json_decode($search_target,true)['userid']; $nickname=json_decode($search_target,true)["nama"]; $jumlah_awal=json_decode($search_target,true)["follower"]; //ringkasan $target=$tg_follower+$jumlah_awal; $sleep="20"; //account information echo " TARGET INFORMATION username : $nickname followers : $jumlah_awal target follower: $target unique userid : $userid "; //use passthru //echo "php follow.php false $username $userid $target $sleep"; passthru("php main.php false $username $userid $tg_follower $sleep"); exit; } //running script $target_name=$argv[2]; $userid=$argv[3]; $targetF=$argv[4]; $sleep=$argv[5]; for($i=1;$i<=$targetF;$i++){ echo run($target_name); } /* while(true){ // sleep(1); // $cek=v2baru($target_name); //if($cek>$targetF){ //echo "\033[1;31m success mencapai target!!\n"; //exit; //}else{ // echo "jumlah: $cek\n"; //} //for ($i = 1; $i <= $sleep; ++$i) { $pid = pcntl_fork(); if (!$pid) { //paste content disini echo run($target_name); exit($i); } } while (pcntl_waitpid(0, $status) != -1) { $status = pcntl_wexitstatus($status); } }*/
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.21, 8.4.1 - 8.4.7
Warning: include(): open_basedir restriction in effect. File(requirements.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/sMlcr on line 2 Warning: include(requirements.php): Failed to open stream: Operation not permitted in /in/sMlcr on line 2 Warning: include(): Failed opening 'requirements.php' for inclusion (include_path='.:') in /in/sMlcr on line 2 Warning: include(): open_basedir restriction in effect. File(search.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/sMlcr on line 3 Warning: include(search.php): Failed to open stream: Operation not permitted in /in/sMlcr on line 3 Warning: include(): Failed opening 'search.php' for inclusion (include_path='.:') in /in/sMlcr on line 3 Warning: Undefined array key 1 in /in/sMlcr on line 81 Fatal error: Uncaught Error: Call to undefined function readline() in /in/sMlcr:82 Stack trace: #0 {main} thrown in /in/sMlcr on line 82
Process exited with code 255.

preferences:
50.71 ms | 408 KiB | 5 Q