3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api_app_premium.byshop.me/api/history', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', //ดึกประวัติการซื้อทั้งหมด //CURLOPT_POSTFIELDS => array('keyapi' => 'ZoEbNkZPklQ5vjQVxfMm4nmR1ftjwi'), //ดึกประวัติการซื้อลูกค้า CURLOPT_POSTFIELDS => array('keyapi' => 'ZoEbNkZPklQ5vjQVxfMm4nmR1ftjwi','username_customer' => 'Uc8d88568da4c9f8a4b2a57a14e1a1967'), CURLOPT_HTTPHEADER => array( 'Cookie: PHPSESSID=u8df3d96ij8re36ld76cl64t3p' ), )); $response = curl_exec($curl); curl_close($curl); $load_packz = json_decode($response); ?> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> <link href="https://fonts.googleapis.com/css?family=Sarabun:100,200,400,300,500,600,700" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"/> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/jquery.min.js"></script> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/datatables.min.js"></script> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://css_script.css_script.byshop.me/buy/css/fontawesome-5.2.0.css"> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/sweetalert.min.js"></script> </head> <body> <style type="text/css"> body { font-family:"Sarabun", sans-serif; background-color: #d4d8de; } </style > <br> <div class="container" style="margin-top:100px;margin-bottom:100px;"> <div class=" card card-body" > <center><h1><i class="fa fa-history"></i> ดึงรายการซื้อสินค้า </h1></center> <br> <div class="container"> <div class="row"> <div class="col-sm-12"> <table class="table table-bordered table-striped table-responsive-md" cellspacing="0" width="100%" id="example"> <thead> <tr> <th>Order ID</th> <th>สินค้า</th> <th>E-mail/Password</th> <th>เครื่องมือแจ้งปัญหา</th> <th>username(ตัวเอง)</th> <th>username(ลูกค้า)</th> <th>ราคา</th> <th>เวลา</th> </tr> </thead> <?php foreach ($load_packz as $data) { ?> <?php $report_id = $data->id; ?> <tbody> <tr> <td><?=$data->id;?></td> <td><?=$data->name;?></td> <td><?=$data->email;?><br><?=$data->password;?></td> <td><a style="width: 10rem;" type="button" class="btn btn-dark" target="_blank" data-toggle="modal" data-target="#report<?=$data->id;?>" href="#"><i class="fa fa-wrench"></i> แจ้งปัญหา</a></td> <td><?=$data->username;?></td> <td><?=$data->username_customer;?></td> <td><?=$data->price;?></td> <td><?=$data->time;?></td> </tr> </tbody> <!-- report แจ้งปัญหา --> <div class="modal fade " id="report<?=$data->id;?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header "> <h5 class="modal-title " id="exampleModalLabel"><i class="fa fa-wrench"></i> แจ้งปัญหา</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> <div class="container"> <iframe frameborder="0" height="450" src=" https://report_product.byshop.me/api/report/?OrderID=<?=$data->id;?>" width="100%"></iframe> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">ปิด</button> </div> </div> </div> </div> <?php } ?> </table> </div> </div> </div> </div> <br> <!-- script เครื่องมือสำหรับรับ SMS/OTP แอพที่ต้องใช้รับ OTP ในการเข้าสู่ระบบ --> <?php echo file_get_contents("https://otp_app.byshop.me/buy/otp_auto/script_smsotp.php"); ?><?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api_app_premium.byshop.me/api/history', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', //ดึกประวัติการซื้อทั้งหมด //CURLOPT_POSTFIELDS => array('keyapi' => 'ZoEbNkZPklQ5vjQVxfMm4nmR1ftjwi'), //ดึกประวัติการซื้อลูกค้า CURLOPT_POSTFIELDS => array('keyapi' => 'ZoEbNkZPklQ5vjQVxfMm4nmR1ftjwi','username_customer' => 'Uc8d88568da4c9f8a4b2a57a14e1a1967'), CURLOPT_HTTPHEADER => array( 'Cookie: PHPSESSID=u8df3d96ij8re36ld76cl64t3p' ), )); $response = curl_exec($curl); curl_close($curl); $load_packz = json_decode($response); ?> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> <link href="https://fonts.googleapis.com/css?family=Sarabun:100,200,400,300,500,600,700" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"/> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/jquery.min.js"></script> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/datatables.min.js"></script> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://css_script.css_script.byshop.me/buy/css/fontawesome-5.2.0.css"> <script src="https://css_script.css_script.byshop.me/buy/_dist/js/sweetalert.min.js"></script> </head> <body> <style type="text/css"> body { font-family:"Sarabun", sans-serif; background-color: #d4d8de; } </style > <br> <div class="container" style="margin-top:100px;margin-bottom:100px;"> <div class=" card card-body" > <center><h1><i class="fa fa-history"></i> ดึงรายการซื้อสินค้า </h1></center> <br> <div class="container"> <div class="row"> <div class="col-sm-12"> <table class="table table-bordered table-striped table-responsive-md" cellspacing="0" width="100%" id="example"> <thead> <tr> <th>Order ID</th> <th>สินค้า</th> <th>E-mail/Password</th> <th>เครื่องมือแจ้งปัญหา</th> <th>username(ตัวเอง)</th> <th>username(ลูกค้า)</th> <th>ราคา</th> <th>เวลา</th> </tr> </thead> <?php foreach ($load_packz as $data) { ?> <?php $report_id = $data->id; ?> <tbody> <tr> <td><?=$data->id;?></td> <td><?=$data->name;?></td> <td><?=$data->email;?><br><?=$data->password;?></td> <td><a style="width: 10rem;" type="button" class="btn btn-dark" target="_blank" data-toggle="modal" data-target="#report<?=$data->id;?>" href="#"><i class="fa fa-wrench"></i> แจ้งปัญหา</a></td> <td><?=$data->username;?></td> <td><?=$data->username_customer;?></td> <td><?=$data->price;?></td> <td><?=$data->time;?></td> </tr> </tbody> <!-- report แจ้งปัญหา --> <div class="modal fade " id="report<?=$data->id;?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header "> <h5 class="modal-title " id="exampleModalLabel"><i class="fa fa-wrench"></i> แจ้งปัญหา</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> <div class="container"> <iframe frameborder="0" height="450" src=" https://report_product.byshop.me/api/report/?OrderID=<?=$data->id;?>" width="100%"></iframe> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">ปิด</button> </div> </div> </div> </div> <?php } ?> </table> </div> </div> </div> </div> <br> <!-- script เครื่องมือสำหรับรับ SMS/OTP แอพที่ต้องใช้รับ OTP ในการเข้าสู่ระบบ --> <?php echo file_get_contents("https://otp_app.byshop.me/buy/otp_auto/script_smsotp.php"); ?>

preferences:
31.15 ms | 405 KiB | 5 Q