3v4l.org

run code in 300+ PHP versions simultaneously
<?php $privateKey = '0ac56cf42961b3a00e3a54e8608ac56628331a1a21e28e44288b713442c05d9c'; //your private-key $publicKey = 'd7830ae49fbe30ce79aa033662057fcb8c0d57959411066208444d709c3cd87a'; //your public-key $resource = '/shipment/'; //uri of a resource $timestamp = time(); //only needed for the testing-server $baseUrl = 'https://testing.swissconnect.ch/api/'; $basicAuthUser = 'swissconnect'; $basicAuthPass = 't3St-M4th1lda'; $contentData = '<?xml version="1.0" encoding="UTF-8"?> <auftrag><system_fk_id>9999</system_fk_id><startdatum>2014-10-24 14:40:44</startdatum><rechnungsbeschreibung_offiziell>4700946399 / S-GE</rechnungsbeschreibung_offiziell><rechnungssteller>2</rechnungssteller><bezahl_kurier_id>600</bezahl_kurier_id><bemerkung>bitte Monteur 30 Min. vorher anrufen / Appelez le monteur 30 Min. avant svp.</bemerkung><auftrag_absender_kontaktadressen><item><firma>Schindler AufzÃ1Ž4ge AG</firma><addresse>Zugerstrasse 13</addresse><postleitzahl>6030</postleitzahl><ort>Ebikon</ort></item></auftrag_absender_kontaktadressen><auftrag_empfaenger_kontaktadressen><item><firma>Schindler AufzÃ1Ž4ge AG</firma><addresse>Friedgrabenstrasse 15</addresse><postleitzahl>8907</postleitzahl><ort>Wettswil</ort><kontakt>Kapinos Tobias / 044 172 8484 844</kontakt></item></auftrag_empfaenger_kontaktadressen><auftrag_dritte_kontaktadressen><item><kontaktadresse_id>62300</kontaktadresse_id><bezahlt_bool>true</bezahlt_bool></item></auftrag_dritte_kontaktadressen><colis><item><anzahl>1</anzahl><gewicht>0.035 </gewicht><laenge>20.000 </laenge><breite>20.000 </breite><hoehe>20.000 </hoehe><beschreibung>Paket</beschreibung></item></colis><auftrag_kuriere_dritte><item><kurier_id>101</kurier_id></item></auftrag_kuriere_dritte></auftrag>'; //For the hash-key we do not need the serverPW $url = $baseUrl . $privateKey . '/' . $timestamp . $resource; //generating hash which has to be placed in the header of the request. Header name: X-hash $resultHash = hash('sha256', $url . $contentData); $sendUrl = $baseUrl . $publicKey . '/' . $timestamp . $resource; $httpHeaders = array( "Content-Type: application/xml", "Accept: application/xml", "X-hash: " . $resultHash, "X-language: de", "Authorization: Basic ". base64_encode($basicAuthUser. ':'. $basicAuthPass), ); $httpheaderstring = implode(",", $httpHeaders); echo '$HTTP_HEADER..: '.$httpheaderstring."\n"; echo '$TIMESTAMP....: '.$timestamp."\n"; echo '$SEND_URL.....: '.$sendUrl."\n"; echo '$RESULTHASH...: '.$resultHash."\n"; echo '$URL_FOR_HASH.: '.$url."\n"; echo '$CONTENTDATA..: '.$contentData."\n";

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.3.10.0000.01316.77
7.3.00.0100.00316.32
7.2.130.0040.01116.61
7.2.120.0130.00716.67
7.2.110.0070.01016.90
7.2.100.0090.00616.98
7.2.90.0090.00616.94
7.2.80.0030.01116.69
7.2.70.0070.00716.82
7.2.60.0080.00716.92
7.2.50.0110.00916.95
7.2.40.0070.00716.67
7.2.30.0060.00916.84
7.2.20.0140.00916.87
7.2.10.0110.00817.09
7.2.00.0060.00916.87
7.1.250.0070.00715.83
7.1.200.0000.00615.71
7.1.70.0000.00717.20
7.1.60.0060.01919.32
7.1.50.0070.01416.96
7.1.00.0100.06722.28
7.0.200.0060.00316.94
7.0.140.0030.07321.95
7.0.80.0170.07319.88
7.0.70.0170.04720.00
7.0.60.0200.08019.96
7.0.50.0100.08020.33
7.0.40.0270.03020.09
7.0.30.0130.08020.18
7.0.20.0200.07320.04
7.0.10.0030.08020.14
7.0.00.0100.07720.09
5.6.280.0030.07320.92
5.6.230.0230.07020.72
5.6.220.0100.08020.49
5.6.210.0070.07020.66
5.6.200.0100.08321.05
5.6.190.0100.07320.94
5.6.180.0030.09021.10
5.6.170.0030.05021.00
5.6.160.0100.08020.96
5.6.150.0100.08721.10
5.6.140.0100.06021.04
5.6.130.0030.05320.98
5.6.120.0070.05721.02
5.6.110.0030.06321.00
5.6.100.0200.07721.12
5.6.90.0170.05720.99
5.6.80.0070.06020.39
5.6.70.0170.07320.45
5.6.60.0100.08020.29
5.6.50.0100.05320.40
5.6.40.0130.06320.35
5.6.30.0030.06320.47
5.6.20.0070.06720.29
5.6.10.0030.05320.52
5.6.00.0100.04320.42
5.5.370.0170.07020.50
5.5.360.0070.07720.36
5.5.350.0130.04320.46
5.5.340.0170.07320.88
5.5.330.0100.04320.82
5.5.320.0070.08020.73
5.5.310.0000.07720.76
5.5.300.0100.06020.90
5.5.290.0030.08320.73
5.5.280.0070.04020.92
5.5.270.0170.06720.63
5.5.260.0100.08020.89
5.5.250.0170.07720.71
5.5.240.0070.08020.31
5.5.230.0070.08320.30
5.5.220.0100.05020.30
5.5.210.0030.08320.22
5.5.200.0030.08720.25
5.5.190.0070.04319.99
5.5.180.0030.07020.10
5.5.160.0130.07720.22
5.5.150.0030.06020.26
5.5.140.0170.06720.17
5.5.130.0130.07320.23
5.5.120.0130.07320.22
5.5.110.0070.05320.23
5.5.100.0030.05020.11
5.5.90.0130.04320.04
5.5.80.0030.05020.07
5.5.70.0100.07720.06
5.5.60.0070.07720.03
5.5.50.0070.05020.03
5.5.40.0130.07720.05
5.5.30.0100.07720.05
5.5.20.0030.08320.13
5.5.10.0200.07020.11
5.5.00.0130.07320.12
5.4.450.0100.09019.45
5.4.440.0030.09019.35
5.4.430.0030.09019.45
5.4.420.0130.07319.22
5.4.410.0230.06319.14
5.4.400.0070.07718.98
5.4.390.0170.06718.96
5.4.380.0070.07318.90
5.4.370.0130.07318.95
5.4.360.0070.07719.07
5.4.350.0070.07718.81
5.4.340.0000.07718.81
5.4.320.0070.07718.78
5.4.310.0070.08019.05
5.4.300.0070.08018.96
5.4.290.0070.05018.80
5.4.280.0070.07719.23
5.4.270.0030.07319.06
5.4.260.0070.05018.97
5.4.250.0070.07019.05
5.4.240.0100.05019.14
5.4.230.0070.08018.89
5.4.220.0170.06318.97
5.4.210.0030.07019.09
5.4.200.0100.04019.04
5.4.190.0100.07318.77
5.4.180.0100.05019.21
5.4.170.0100.03319.10
5.4.160.0100.04019.20
5.4.150.0030.07019.07
5.4.140.0130.05716.37
5.4.130.0100.06716.28
5.4.120.0100.07016.28
5.4.110.0030.05316.26
5.4.100.0030.03716.26
5.4.90.0170.03316.31
5.4.80.0100.07016.42
5.4.70.0030.05016.25
5.4.60.0130.05716.36
5.4.50.0100.07016.39
5.4.40.0070.07016.23
5.4.30.0100.06716.33
5.4.20.0070.07016.31
5.4.10.0100.07016.29
5.4.00.0030.04715.71
5.3.290.0000.05014.66
5.3.280.0100.07314.59
5.3.270.0100.07014.47
5.3.260.0070.06314.62
5.3.250.0170.06714.45
5.3.240.0070.08014.45
5.3.230.0070.05014.60
5.3.220.0030.05014.55
5.3.210.0030.08314.39
5.3.200.0030.04314.43
5.3.190.0100.07014.40
5.3.180.0070.06714.51
5.3.170.0100.03714.52
5.3.160.0070.07314.54
5.3.150.0070.04714.56
5.3.140.0070.08014.55
5.3.130.0100.07314.52
5.3.120.0130.07014.39
5.3.110.0070.04714.54
5.3.100.0030.05713.88
5.3.90.0030.07013.86
5.3.80.0070.04714.01
5.3.70.0070.07013.96
5.3.60.0070.05713.99
5.3.50.0070.04713.81
5.3.40.0030.06013.89
5.3.30.0000.04013.86
5.3.20.0000.03713.69
5.3.10.0000.04013.64
5.3.00.0030.04013.50
5.2.170.0070.03311.07
5.2.160.0070.03011.18
5.2.150.0000.03311.14
5.2.140.0070.03711.01
5.2.130.0000.03011.03
5.2.120.0070.02711.10
5.2.110.0030.03011.10
5.2.100.0030.02711.03
5.2.90.0030.03010.93
5.2.80.0030.03011.18
5.2.70.0070.03710.97
5.2.60.0030.04010.85
5.2.50.0000.03011.07
5.2.40.0030.02711.02
5.2.30.0000.03310.97
5.2.20.0000.03310.96
5.2.10.0000.02710.93
5.2.00.0000.02710.64
5.1.60.0000.0279.98
5.1.50.0070.0379.83
5.1.40.0000.0409.97
5.1.30.0100.04710.44
5.1.20.0030.03010.36
5.1.10.0100.02310.13
5.1.00.0000.02710.16
5.0.50.0030.0178.64
5.0.40.0000.0208.27
5.0.30.0030.0238.32
5.0.20.0000.0208.20
5.0.10.0000.0208.18
5.0.00.0030.0238.18
4.4.90.0070.0277.37
4.4.80.0000.0177.37
4.4.70.0000.0177.37
4.4.60.0030.0137.37
4.4.50.0000.0277.37
4.4.40.0030.0537.37
4.4.30.0000.0207.37
4.4.20.0000.0177.37
4.4.10.0030.0137.37
4.4.00.0030.0507.37
4.3.110.0070.0137.37
4.3.100.0000.0137.37
4.3.90.0000.0307.37
4.3.80.0000.0237.37
4.3.70.0000.0177.37
4.3.60.0030.0137.37
4.3.50.0000.0177.37
4.3.40.0000.0207.37
4.3.30.0030.0137.37
4.3.20.0000.0177.37
4.3.10.0030.0137.37
4.3.00.0030.0137.37

preferences:
31.78 ms | 400 KiB | 5 Q