3v4l.org

run code in 300+ PHP versions simultaneously
<?php // On initialise les variables function global_var($var) { global $HTTP_POST_VARS, $HTTP_GET_VARS; if (!empty($HTTP_POST_VARS[$var])) { return $HTTP_POST_VARS[$var]; }elseif (!empty($HTTP_GET_VARS[$var])) { return $HTTP_GET_VARS[$var]; }else{ return ''; } } $key ="2141252136337571"; // pour Plaque-funeraire.fr $params = array(); $params['vads_site_id'] = "63837004"; $params['vads_amount'] = $montant; $params['vads_currency'] = "978"; $params['vads_ctx_mode'] = "PRODUCTION"; $params['vads_page_action'] = "PAYMENT"; $params['vads_action_mode'] = "INTERACTIVE"; $params['vads_payment_config'] = "SINGLE"; $params['vads_version'] = "V2"; $params['vads_url_success'] = "http://www.Plaque-funeraire.fr/succespaiement.php"; $params['vads_url_return'] = "http://www.Plaque-funeraire.fr"; $params['vads_url_cancel'] = "http://www.Plaque-funeraire.fr/echecpaiement.php"; $params['vads_validation_mode'] = 0; $params['vads_shop_url'] = "http://www.Plaque-funeraire.fr"; $params['vads_shop_name'] = "Plaque-funeraire.fr - RENAUD Gravure"; $params['vads_cust_name'] = $nom; $params['vads_cust_email'] = $email; $params['vads_cust_address'] = $adresse1; $params['vads_cust_city'] = $ville; $params['vads_cust_zip'] = $codepostal; $params['vads_cust_state'] = $pays; $params['vads_cust_cell_phone'] = utf8_encode($tel1); $params['vads_order_id'] = utf8_encode($referenceproduit); if ($language){$params['vads_language'] = $language;} //$params['vads_order_info'] = $info; $ts = time(); $params['vads_trans_date'] = gmdate("YmdHis",$ts); $filename = "count.txt"; $fp = fopen($filename, 'r+'); flock($fp, LOCK_EX); $count = (int)fread($fp,6); $count++; if($count<0 || $count > 899999) {$count=0;} fseek($fp,0); ftruncate($fp,0); fwrite($fp,$count); flock($fp, LOCK_UN); fclose($fp); $trans_id = sprintf("%06d",$count); $params['vads_trans_id'] = $trans_id; ksort($params); $contenu_signature = ""; foreach ($params as $nom => $valeur) {$contenu_signature .= $valeur."+";} $contenu_signature .= $key; $params['signature'] = sha1($contenu_signature); ?> <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <?php foreach($params as $nom => $valeur) { echo '<input type="hidden" name="'.$nom.'" value="'.$valeur.'"/>'; } ?> </form> <script> window.document.postsystempay.submit(); </script> </html>

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)
7.4.10.0130.00314.94
7.4.00.0070.01015.02
7.3.130.0140.00315.01
7.3.120.0070.00815.07
7.3.110.0060.00814.96
7.3.100.0040.01415.07
7.3.90.0020.01314.73
7.3.80.0080.00615.09
7.3.70.0020.01214.97
7.3.60.0020.01414.94
7.3.50.0060.01014.82
7.3.40.0060.00814.77
7.3.30.0070.00714.83
7.3.20.0100.00816.76
7.3.10.0070.00716.69
7.3.00.0040.01116.47
7.2.260.0060.01215.14
7.2.250.0100.00715.37
7.2.240.0070.01015.14
7.2.230.0070.01115.12
7.2.220.0080.00714.96
7.2.210.0070.00915.03
7.2.200.0040.01215.21
7.2.190.0080.00815.08
7.2.180.0050.01215.21
7.2.170.0060.01115.28
7.2.160.0080.00715.02
7.2.150.0050.00916.92
7.2.140.0100.00816.96
7.2.130.0060.01117.00
7.2.120.0070.00816.89
7.2.110.0060.00916.87
7.2.100.0090.00616.79
7.2.90.0080.00916.87
7.2.80.0080.00916.97
7.2.70.0070.01116.93
7.2.60.0070.00816.94
7.2.50.0100.00616.91
7.2.40.0090.00916.99
7.2.30.0050.01016.97
7.2.20.0090.00716.86
7.2.10.0060.00816.83
7.2.00.0080.00617.47
7.1.330.0050.00815.92
7.1.320.0030.01215.65
7.1.310.0060.01016.05
7.1.300.0070.00815.76
7.1.290.0070.00815.97
7.1.280.0040.01115.70
7.1.270.0050.01116.01
7.1.260.0050.00615.88
7.1.250.0050.00815.80
7.1.240.0090.00615.84
7.1.230.0050.00516.01
7.1.220.0080.00816.03
7.1.210.0040.00715.63
7.1.200.0100.00115.86
7.1.190.0060.00315.98
7.1.180.0060.00316.06
7.1.170.0060.01015.65
7.1.160.0040.01515.95
7.1.150.0040.01115.67
7.1.140.0090.00615.88
7.1.130.0040.01115.96
7.1.120.0070.00715.77
7.1.110.0000.00915.88
7.1.100.0060.00816.98
7.1.90.0070.00715.93
7.1.80.0090.00616.06
7.1.70.0080.01016.58
7.1.60.0030.00916.63
7.1.50.0070.01216.48
7.1.40.0080.00815.94
7.1.30.0000.01515.98
7.1.20.0030.00915.61
7.1.10.0080.00415.61
7.1.00.0030.04219.18
7.0.330.0030.01315.23
7.0.320.0100.00715.24
7.0.310.0030.00915.58
7.0.300.0080.00815.43
7.0.290.0000.01215.41
7.0.280.0050.00515.36
7.0.270.0040.00815.66
7.0.260.0040.00815.50
7.0.250.0040.00715.61
7.0.240.0100.00615.51
7.0.230.0110.00015.45
7.0.220.0080.01115.40
7.0.210.0100.00715.63
7.0.200.0020.00916.22
7.0.190.0000.01615.48
7.0.180.0060.01015.47
7.0.170.0100.00615.64
7.0.160.0090.00315.36
7.0.150.0070.00715.43
7.0.140.0090.00315.37
7.0.130.0070.00315.50
7.0.120.0000.01615.30
7.0.110.0080.00615.54
7.0.100.0080.04218.63
7.0.90.0070.04118.63
7.0.80.0020.03418.47
7.0.70.0090.04318.55
7.0.60.0080.03218.67
7.0.50.0000.05118.74
7.0.40.0110.02316.78
7.0.30.0020.05016.77
7.0.20.0070.02716.87
7.0.10.0080.04816.78
7.0.00.0090.04616.73
5.6.400.0000.00914.88
5.6.390.0030.01214.64
5.6.380.0040.01114.79
5.6.370.0060.00914.54
5.6.360.0090.00614.58
5.6.350.0030.01014.74
5.6.340.0040.00714.74
5.6.330.0040.01214.36
5.6.320.0070.00714.46
5.6.310.0000.01114.62
5.6.300.0100.00314.73
5.6.290.0090.00314.79
5.6.280.0070.03717.97
5.6.270.0100.00614.57
5.6.260.0090.00614.50
5.6.250.0080.04517.62
5.6.240.0060.02617.61
5.6.230.0110.04517.70
5.6.220.0110.04017.48
5.6.210.0050.03717.53
5.6.200.0080.03317.78
5.6.190.0100.02517.92
5.6.180.0000.05517.83
5.6.170.0080.05017.75
5.6.160.0050.04617.95
5.6.150.0020.05217.72
5.6.140.0080.03517.96
5.6.130.0050.04717.80
5.6.120.0030.04817.70
5.6.110.0050.04817.68
5.6.100.0110.03717.73
5.6.90.0090.02517.77
5.6.80.0070.03717.57
5.6.70.0050.04717.28
5.6.60.0050.04717.40
5.6.50.0030.04717.45
5.6.40.0080.04217.51
5.6.30.0070.04517.36
5.6.20.0070.04017.48
5.6.10.0070.03717.50
5.6.00.0110.04217.46
5.5.380.0080.04117.48
5.5.370.0090.02517.47
5.5.360.0120.03617.46
5.5.350.0060.04017.54
5.5.340.0030.03517.67
5.5.330.0090.03517.59
5.5.320.0060.03517.73
5.5.310.0040.04817.70
5.5.300.0100.02817.70
5.5.290.0050.03417.72
5.5.280.0050.03517.62
5.5.270.0020.04917.73
5.5.260.0030.03017.51
5.5.250.0050.02617.61
5.5.240.0050.03917.45
5.5.230.0070.03517.43
5.5.220.0050.04817.35
5.5.210.0100.04217.37
5.5.200.0020.04517.29
5.5.190.0080.04117.34
5.5.180.0050.03217.21
5.5.170.0080.00414.40
5.5.160.0080.03817.32
5.5.150.0110.03817.35
5.5.140.0060.04217.46
5.5.130.0070.04117.26
5.5.120.0080.04317.30
5.5.110.0050.04717.42
5.5.100.0070.04017.29
5.5.90.0080.04217.23
5.5.80.0090.04217.28
5.5.70.0160.02817.32
5.5.60.0100.03517.37
5.5.50.0080.02817.40
5.5.40.0060.04317.17
5.5.30.0060.03117.17
5.5.20.0000.03217.27
5.5.10.0160.03017.07
5.5.00.0080.04417.27
5.4.450.0040.04115.21
5.4.440.0100.03615.41
5.4.430.0120.03215.28
5.4.420.0050.02515.46
5.4.410.0120.03315.31
5.4.400.0100.03815.13
5.4.390.0110.03015.31
5.4.380.0020.04714.95
5.4.370.0050.03715.08
5.4.360.0060.04115.05
5.4.350.0020.03215.21
5.4.340.0050.04215.08
5.4.330.0000.00711.27
5.4.320.0090.03715.26
5.4.310.0040.04315.03
5.4.300.0090.03515.06
5.4.290.0050.03915.09
5.4.280.0080.04115.20
5.4.270.0080.04115.15
5.4.260.0020.04615.22
5.4.250.0030.03515.07
5.4.240.0050.03815.17
5.4.230.0050.03214.96
5.4.220.0070.02315.14
5.4.210.0100.03015.14
5.4.200.0050.04014.96
5.4.190.0040.02915.15
5.4.180.0130.03315.04
5.4.170.0100.02915.28
5.4.160.0030.04615.03
5.4.150.0020.04714.99
5.4.140.0110.02313.84
5.4.130.0060.03613.76
5.4.120.0040.02513.82
5.4.110.0080.03513.90
5.4.100.0000.03013.87
5.4.90.0040.03813.65
5.4.80.0060.02413.88
5.4.70.0050.02513.69
5.4.60.0050.03813.75
5.4.50.0070.04013.80
5.4.40.0020.04513.71
5.4.30.0090.03313.65
5.4.20.0070.03813.79
5.4.10.0020.04213.71
5.4.00.0100.02813.43
5.3.290.0100.04314.68
5.3.280.0030.08014.58
5.3.270.0070.07714.75
5.3.260.0030.07314.61
5.3.250.0130.06714.69
5.3.240.0030.04714.74
5.3.230.0030.07014.70
5.3.220.0030.07714.62
5.3.210.0130.07014.68
5.3.200.0100.04314.65
5.3.190.0100.07714.68
5.3.180.0030.07014.57
5.3.170.0000.08014.70
5.3.160.0030.07314.55
5.3.150.0070.05314.63
5.3.140.0000.08014.68
5.3.130.0030.07714.66
5.3.120.0070.07314.54
5.3.110.0130.07314.49
5.3.100.0030.08014.08
5.3.90.0030.06314.05
5.3.80.0070.05314.07
5.3.70.0130.06314.05
5.3.60.0100.07313.94
5.3.50.0030.07713.95
5.3.40.0070.07314.07
5.3.30.0070.04313.98
5.3.20.0130.06313.77
5.3.10.0000.08013.67
5.3.00.0070.07013.68
5.2.170.0030.03711.54
5.2.160.0000.06311.54
5.2.150.0070.06011.54
5.2.140.0100.06011.54
5.2.130.0070.06011.54
5.2.120.0070.04711.54
5.2.110.0000.06311.54
5.2.100.0130.05011.54
5.2.90.0070.05711.54
5.2.80.0030.06311.54
5.2.70.0070.06311.54
5.2.60.0030.06011.54
5.2.50.0030.03711.54
5.2.40.0000.06011.54
5.2.30.0000.04311.54
5.2.20.0030.03311.54
5.2.10.0030.02711.54
5.2.00.0030.02311.54
5.1.60.0000.02711.54
5.1.50.0030.02311.54
5.1.40.0000.02311.54
5.1.30.0030.02311.54
5.1.20.0030.02711.54
5.1.10.0030.02311.54
5.1.00.0100.01711.54
5.0.50.0000.02711.54
5.0.40.0000.02011.54
5.0.30.0000.03311.54
5.0.20.0000.02011.54
5.0.10.0000.02011.54
5.0.00.0000.03311.54
4.4.90.0000.03011.54
4.4.80.0000.03011.54
4.4.70.0070.01711.54
4.4.60.0000.02311.54
4.4.50.0030.01311.54
4.4.40.0000.03311.54
4.4.30.0070.01011.54
4.4.20.0000.01311.54
4.4.10.0000.01711.54
4.4.00.0000.02311.54
4.3.110.0000.01311.54
4.3.100.0000.03711.54
4.3.90.0030.01011.54
4.3.80.0030.02311.54
4.3.70.0030.01311.54
4.3.60.0000.02311.54
4.3.50.0000.01311.54
4.3.40.0000.03011.54
4.3.30.0000.01711.54
4.3.20.0000.01711.54
4.3.10.0030.02311.54
4.3.00.0000.02311.54

preferences:
43.83 ms | 401 KiB | 5 Q