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); } }*/

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0110.01120.02
8.4.150.0020.00014.05
8.4.140.0120.01017.73
8.4.130.0160.00618.10
8.4.120.0060.00320.84
8.4.110.0150.00522.46
8.4.100.0110.01117.89
8.4.90.0120.00917.90
8.4.80.0120.00819.63
8.4.70.0220.01018.85
8.4.60.0200.00717.75
8.4.50.0160.00318.02
8.4.40.0190.00517.52
8.4.30.0170.00717.86
8.4.20.0230.00617.88
8.4.10.0230.01117.69
8.3.280.0150.00918.59
8.3.270.0100.00916.89
8.3.260.0100.01016.91
8.3.250.0120.00718.84
8.3.240.0090.01016.98
8.3.230.0120.00816.78
8.3.220.0130.00517.00
8.3.210.0020.00716.91
8.3.200.0180.00416.66
8.3.190.0230.01016.59
8.3.180.0200.00516.72
8.3.170.0250.00616.84
8.3.160.0290.00416.59
8.3.150.0260.00916.58
8.3.140.0260.00416.59
8.3.130.0240.00516.86
8.3.120.0170.00416.71
8.3.110.0190.00516.67
8.3.100.0220.00516.83
8.3.90.0250.00116.76
8.3.80.0190.00216.92
8.3.70.0200.00516.89
8.3.60.0180.00516.60
8.3.50.0210.00416.57
8.3.40.0210.00517.39
8.3.30.0270.00417.36
8.3.20.0330.00817.78
8.3.10.0260.00917.61
8.3.00.0250.00317.62
8.2.290.0080.01120.32
8.2.280.0160.00616.83
8.2.270.0260.00616.66
8.2.260.0180.00816.25
8.2.250.0160.00716.68
8.2.240.0320.00416.59
8.2.230.0200.00416.28
8.2.220.0210.00216.83
8.2.210.0300.00716.34
8.2.200.0330.00616.45
8.2.190.0240.01016.44
8.2.180.0160.00116.72
8.2.170.0260.00617.95
8.2.160.0190.00517.54
8.2.150.0230.00517.52
8.2.140.0160.00317.36
8.2.130.0170.00517.59
8.2.120.0150.00417.69
8.2.110.0130.00717.64
8.2.100.0180.00717.54
8.2.90.0210.00917.79
8.2.80.0300.00917.43
8.2.70.0230.00617.47
8.2.60.0220.00417.29
8.2.50.0160.00617.39
8.2.40.0140.00717.73
8.2.30.0120.00417.52
8.2.20.0120.00817.18
8.2.10.0140.00417.75
8.2.00.0090.00817.58

preferences:
71.33 ms | 403 KiB | 5 Q