3v4l.org

run code in 300+ PHP versions simultaneously
<?php $op["op"] = "create_user"; // The Remote Operation. $op["api_key"] = "6aa4dc3fad948b3146a819ca2e500d5e"; // Check your Dashboard for this value. // See: `s2Member → API / Scripting → Remote Operations API → API Key` $op["data"] = array( "user_login" => "50165", // Required. A unique Username. Lowercase alphanumerics/underscores. "user_email" => "ritehammill-7086@yopmail.com", // Required. A valid/unique Email Address for the new User. // These additional details are 100% completely optional. "modify_if_login_exists" => "1", // Optional. Update/modify if ``user_login`` value already exists in the database? // A non-zero value tells s2Member to update/modify an existing account with the details you provide, if this Username already exists. "user_pass" => "12345678", // Optional. Plain text Password. If empty, this will be auto-generated. "first_name" => "Saúl", // Optional. First Name for the new User. "last_name" => "Muñiz", // Optional. Last Name for the new User. "s2member_level" => "1", // Optional. Defaults to Level #0 (a Free Subscriber). "s2member_ccaps" => "D01,32,24", // Optional. Comma-delimited list of Custom Capabilities. "s2member_registration_ip" => "::1", // Optional. User's IP Address. If empty, s2Member will fill this upon first login. "s2member_subscr_gateway" => "CASH", // Optional. User's Paid Subscr. Gateway Code. One of: (paypal|alipay|authnet|ccbill|clickbank|google). "s2member_subscr_id" => "I-DJASODJF8933J", // Optional. User's Paid Subscr. ID. For PayPal®, use their Subscription ID, or Recurring Profile ID. "s2member_custom" => "www.wealthgenerators.net/50165", // Optional. If provided, should always start with your installation domain name (i.e., $_SERVER["HTTP_HOST"]). "s2member_auto_eot_time" => "2016-07-21", // Optional. Can be any value that PHP's ``strtotime()`` function will understand (i.e., YYYY-MM-DD). "custom_fields" => array("gen_id" => "50165"), // Optional. An array of Custom Registration/Profile Field ID's, with associative values. "s2member_notes" => "New enrolled (Saúl_Muñiz)", // Optional. Administrative notations. "opt_in" => "1", // Optional. A non-zero value tells s2Member to attempt to process any List Servers you've configured in the Dashboard area. // This may result in your mailing list provider sending the User/Member a subscription confirmation email (i.e., ... please confirm your subscription). "notification" => "1", // Optional. A non-zero value tells s2Member to email the new User/Member their Username/Password. // The "notification" parameter also tells s2Member to notify the site Administrator about this new account. ); echo serialize('ú'); //echo urlencode (serialize ($op)); //$post_data = stream_context_create (array("http" => array("method" => "POST", "header" => "Content-type: application/x-www//-form-urlencoded", "content" => "s2member_pro_remote_op=" . urlencode (serialize ($op))))); //$result = trim (file_get_contents ("http://inspiredmediadev.com/xirect/?s2member_pro_remote_op=1", false, $post_data)); //if (!empty($result) && !preg_match ("/^Error\:/i", $result) && is_array($user = @unserialize ($result))) //echo "Success. New User created with ID: " . $user["ID"]; //else //echo "API error reads: " . $result; ?>

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.40.0110.00418.97
8.3.30.0090.00618.76
8.3.20.0070.00020.38
8.3.10.0000.00823.53
8.3.00.0040.00419.79
8.2.170.0140.00722.96
8.2.160.0140.00721.05
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00422.27
8.2.120.0000.00726.35
8.2.110.0060.00322.25
8.2.100.0040.00718.34
8.2.90.0000.00819.39
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00818.03
8.2.50.0000.00818.10
8.2.40.0040.00422.14
8.2.30.0030.00621.10
8.2.20.0040.00417.64
8.2.10.0070.00017.94
8.2.00.0040.00418.10
8.1.270.0000.00723.88
8.1.260.0070.00728.09
8.1.250.0040.00428.09
8.1.240.0070.00321.06
8.1.230.0040.00819.42
8.1.220.0030.00517.75
8.1.210.0040.00418.77
8.1.200.0040.00417.38
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0000.00722.04
8.1.150.0000.00720.50
8.1.140.0070.00019.40
8.1.130.0030.00317.57
8.1.120.0030.00517.34
8.1.110.0000.00717.32
8.1.100.0000.00717.35
8.1.90.0060.00317.27
8.1.80.0040.00417.36
8.1.70.0070.00017.33
8.1.60.0040.00417.41
8.1.50.0000.00817.43
8.1.40.0060.00317.35
8.1.30.0040.00417.43
8.1.20.0040.00417.46
8.1.10.0000.00717.48
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.28
8.0.270.0000.00717.19
8.0.260.0070.00317.21
8.0.250.0030.00316.90
8.0.240.0000.01116.91
8.0.230.0000.00716.86
8.0.220.0030.00316.77
8.0.210.0030.00316.78
8.0.200.0060.00016.69
8.0.190.0000.00716.86
8.0.180.0070.00416.70
8.0.170.0000.00716.70
8.0.160.0030.00416.76
8.0.150.0040.00416.72
8.0.140.0070.00016.63
8.0.130.0030.00313.23
8.0.120.0060.00316.70
8.0.110.0040.00416.75
8.0.100.0050.00316.82
8.0.90.0070.00016.74
8.0.80.0060.00916.77
8.0.70.0030.00516.75
8.0.60.0030.00516.64
8.0.50.0000.00716.66
8.0.30.0080.00817.05
8.0.20.0160.00617.43
8.0.10.0040.00416.73
8.0.00.0160.00616.86
7.4.330.0050.00015.08
7.4.320.0030.00316.49
7.4.300.0030.00316.53
7.4.290.0040.00416.39
7.4.280.0000.00716.52
7.4.270.0080.00016.46
7.4.260.0040.00416.51
7.4.250.0030.00516.50
7.4.240.0070.00016.59
7.4.230.0030.00316.40
7.4.220.0140.00316.42
7.4.210.0090.00616.39
7.4.200.0070.00016.51
7.4.160.0100.00716.35
7.4.150.0080.01217.40
7.4.140.0130.00617.86
7.4.130.0090.00816.60
7.4.120.0090.01116.51
7.4.110.0110.00616.54
7.4.100.0040.01416.52
7.4.90.0120.01216.34
7.4.80.0080.00819.39
7.4.70.0090.00916.32
7.4.60.0090.01316.36
7.4.50.0090.00616.63
7.4.40.0100.00616.50
7.4.30.0060.01016.58
7.4.00.0100.00715.00
7.3.330.0030.00313.04
7.3.320.0060.00012.95
7.3.310.0070.00016.18
7.3.300.0000.00616.08
7.3.290.0050.01116.19
7.3.280.0100.00816.16
7.3.270.0100.00717.40
7.3.260.0080.00816.22
7.3.250.0100.00716.35
7.3.240.0120.00516.32
7.3.230.0130.00416.63
7.3.210.0090.00916.65
7.3.200.0090.00916.31
7.3.190.0090.00916.36
7.3.180.0080.00816.23
7.3.170.0000.01616.47
7.3.160.0120.00616.32
7.3.120.0030.01214.39
7.3.110.0070.01114.92
7.3.100.0030.01014.67
7.3.90.0110.00314.70
7.3.80.0080.00314.73
7.3.70.0030.00914.57
7.3.60.0100.00714.52
7.3.50.0040.00814.75
7.3.40.0040.01114.83
7.3.30.0030.01414.36
7.3.20.0140.00016.69
7.3.10.0100.00616.58
7.3.00.0040.00416.47
7.2.330.0110.00616.46
7.2.320.0130.00416.25
7.2.310.0100.00716.74
7.2.300.0100.00716.50
7.2.290.0160.00316.63
7.2.250.0070.00714.91
7.2.240.0060.00914.90
7.2.230.0100.00714.61
7.2.220.0040.00714.64
7.2.210.0030.00915.03
7.2.200.0080.00314.96
7.2.190.0060.00614.98
7.2.180.0040.01114.74
7.2.170.0060.00614.93
7.2.60.0080.00317.02
7.1.330.0090.00615.75
7.1.320.0070.00715.80
7.1.310.0060.00615.50
7.1.300.0030.01015.70
7.1.290.0040.01115.75
7.1.280.0060.00315.57
7.1.270.0090.00615.61
7.1.260.0070.01015.55
7.1.200.0000.01215.92
7.1.70.0000.00917.27
7.1.60.0000.01119.75
7.1.00.0030.07722.50
7.0.200.0060.00316.89
7.0.90.0300.05320.04
7.0.80.0200.06319.92
7.0.70.0400.04320.00
7.0.60.0300.05720.06
7.0.50.0200.06720.39
7.0.40.0370.05320.35
7.0.30.0330.06020.33
7.0.20.0200.07720.35
7.0.10.0270.06320.36
7.0.00.0230.06720.31
5.6.230.0170.06020.71
5.6.220.0070.06020.62
5.6.210.0130.06320.60
5.6.200.0000.07321.21
5.6.190.0100.06721.10
5.6.180.0100.06321.09
5.6.170.0130.06021.03
5.6.160.0070.06321.09
5.6.150.0130.08321.08
5.6.140.0130.05721.08
5.6.130.0300.06321.01
5.6.120.0330.05721.06
5.6.110.0070.06721.13
5.6.100.0030.06721.13
5.6.90.0170.08321.11
5.6.80.0070.06320.48
5.6.70.0230.04720.46
5.6.60.0230.06020.46
5.6.50.0130.05320.45
5.6.40.0100.06020.43
5.6.30.0170.05320.38
5.6.20.0200.04720.43
5.6.10.0100.06720.45
5.6.00.0270.05720.42

preferences:
59.34 ms | 400 KiB | 5 Q