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"); ?>

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.3.110.0040.00418.35
8.3.100.0120.00624.06
8.3.90.0190.00024.06
8.3.80.0160.00524.06
8.3.70.0210.00424.06
8.3.60.0150.00924.06
8.3.50.0130.01024.06
8.3.40.0150.00424.06
8.3.30.0160.00424.06
8.3.20.0160.00524.06
8.3.10.0150.00324.06
8.3.00.0200.00024.06
8.2.230.0040.00420.94
8.2.220.0080.00024.06
8.2.210.0150.00324.06
8.2.200.0170.00324.06
8.2.190.0130.00624.06
8.2.180.0170.00324.06
8.2.170.0170.00324.06
8.2.160.0190.00524.06
8.2.150.0180.00624.06
8.2.140.0210.00324.06
8.2.130.0180.00324.06
8.2.120.0200.00324.06
8.2.110.0220.00024.06
8.2.100.0210.00324.06
8.2.90.0200.00724.06
8.2.80.0220.00324.06
8.2.70.0160.00624.06
8.2.60.0130.01724.06
8.2.50.0220.00324.06
8.2.40.0140.00524.06
8.2.30.0160.00324.06
8.2.20.0150.00424.06
8.2.10.0190.00024.06
8.2.00.0130.00524.06
8.1.290.0070.01324.06
8.1.280.0080.01124.06
8.1.270.0180.00424.06
8.1.260.0140.00724.06
8.1.250.0140.00824.06
8.1.240.0160.00324.06
8.1.230.0120.00924.06
8.1.220.0200.00024.06
8.1.210.0180.00324.06
8.1.200.0190.00324.06
8.1.190.0220.00324.06
8.1.180.0180.00524.06
8.1.170.0130.00424.06
8.1.160.0160.00224.06
8.1.150.0120.00824.06
8.1.140.0110.00724.06
8.1.130.0090.00924.06
8.1.120.0190.00024.06
8.1.110.0150.00324.06
8.1.100.0180.00024.06
8.1.90.0160.00524.06
8.1.80.0150.00824.06
8.1.70.0160.00324.06
8.1.60.0170.00324.06
8.1.50.0140.00624.06
8.1.40.0160.00424.06
8.1.30.0120.00824.06
8.1.20.0170.00324.06
8.1.10.0170.00024.06
8.1.00.0170.00324.06

preferences:
28.24 ms | 403 KiB | 5 Q