3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pixel { public $orderDateTime; public $domain; public $publId; public $privId; } class PixelHandling extends SoapClient{ // Client connection private $clientopts; private $wsdl; private $client; function __construct(){ $this->clientopts = array('login' => 'SlevogtE', 'password' => 'BBDEXI', 'trace' => 1); $this->wsdl = 'https://' . $clientopts['login'] . ':' . $clientopts['password'] . '@tom-test.vgwort.de/services/1.0/pixelService.wsdl' ; $this->client = new SoapClient($wsdl, $clientopts); } // Order Pixel (amount) --> pixels will be written to array $pixels public function orderNewPixel($amount){ $params = new StdClass(); $params->count = $amount; $arr = array(); try{ $result = $this->client->orderPixel($params); foreach($result as $val){ $pixels = new Pixel(); $pixels->orderDateTime = $val->orderDateTime; $pixels->domain = $val->domain; $pixels->publId = $val->pixels->publicIdentificationId; $pixels->privId = $val->pixels->privateIdentificationId; array_push($arr, $pixels); } } catch(SoapFault $e){ echo "Fehlercode: ", $result->errorcode, "\n"; echo "Message: ", $result->errormsg, "\n"; echo "Folgende Anzahl waere moeglich gewesen: ", $result->maxOrder, "\n"; } return $arr; } } // Check whether Soap can be even used.. if(!class_exists('SoapClient')){ echo '<script type="text/javascript" language="Javascript">alert("Fehler: PHP-Modul fehlt.")</script>'; } $test = new PixelHandling(); $test->orderNewPixel(2); // Format für Pixel export // <IMG src="domain.met.vgwort.de/na/c5b7568d28884052a9ff92d5afd08f34" // height="1" width="1" border=“0“> ?>

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.60.0030.01318.55
8.3.50.0110.00521.96
8.3.40.0040.01119.02
8.3.30.0090.00618.91
8.3.20.0040.00420.20
8.3.10.0000.00723.52
8.3.00.0040.00420.65
8.2.180.0140.00716.88
8.2.170.0110.00422.96
8.2.160.0090.00622.03
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00822.13
8.2.110.0060.00322.08
8.2.100.0040.00717.72
8.2.90.0040.00419.09
8.2.80.0000.00917.97
8.2.70.0060.00617.75
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00419.26
8.2.30.0030.00618.07
8.2.20.0050.00317.78
8.2.10.0040.00417.68
8.2.00.0000.00817.79
8.1.280.0000.01425.92
8.1.270.0060.00322.18
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00422.00
8.1.230.0090.00324.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00617.25
8.1.190.0080.00017.52
8.1.180.0090.00018.10
8.1.170.0080.00018.57
8.1.160.0060.00321.95
8.1.150.0000.00818.64
8.1.140.0060.00317.46
8.1.130.0080.00017.70
8.1.120.0030.00517.37
8.1.110.0030.00417.42
8.1.100.0040.00417.33
8.1.90.0000.00717.29
8.1.80.0040.00417.39
8.1.70.0000.00717.33
8.1.60.0030.00617.53
8.1.50.0040.00417.35
8.1.40.0040.00417.37
8.1.30.0050.00317.41
8.1.20.0030.00517.64
8.1.10.0050.00217.54
8.1.00.0040.00417.35
8.0.300.0000.00718.77
8.0.290.0030.00617.18
8.0.280.0000.00718.46
8.0.270.0000.00717.31
8.0.260.0000.00616.86
8.0.250.0030.00316.94
8.0.240.0070.00016.93
8.0.230.0070.00016.91
8.0.220.0000.00716.93
8.0.210.0000.00816.93
8.0.200.0040.00416.91
8.0.190.0070.00017.02
8.0.180.0050.00316.89
8.0.170.0080.00016.93
8.0.160.0040.00417.02
8.0.150.0040.00416.94
8.0.140.0000.00816.97
8.0.130.0030.00313.46
8.0.120.0040.00416.96
8.0.110.0000.00816.89
8.0.100.0050.00316.86
8.0.90.0030.00316.84
8.0.80.0120.00316.92
8.0.70.0040.00416.96
8.0.60.0000.00717.03
8.0.50.0050.00517.00
8.0.30.0130.00617.06
8.0.20.0150.00817.40
8.0.10.0000.00717.09
8.0.00.0060.01316.74
7.4.330.0020.00215.00
7.4.320.0030.00316.46
7.4.300.0060.00016.55
7.4.290.0000.00616.46
7.4.280.0000.00716.44
7.4.270.0050.00316.56
7.4.260.0050.00316.43
7.4.250.0070.00016.52
7.4.240.0040.00316.46
7.4.230.0070.00016.36
7.4.220.0070.01016.45
7.4.210.0070.00816.60
7.4.200.0000.00716.52
7.4.190.0040.00416.68
7.4.160.0080.00816.59
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0120.00916.43
7.4.120.0070.01216.47
7.4.110.0080.00816.42
7.4.100.0100.00716.41
7.4.90.0110.00616.55
7.4.80.0160.00616.38
7.4.70.0110.00716.55
7.4.60.0130.00316.27
7.4.50.0040.00416.31
7.4.40.0000.01422.77
7.4.30.0090.00616.50
7.4.00.0070.00714.96
7.3.330.0030.00313.29
7.3.320.0000.00613.26
7.3.310.0000.00716.21
7.3.300.0070.00016.32
7.3.290.0090.00616.34
7.3.280.0070.00816.29
7.3.270.0110.00717.40
7.3.260.0120.00616.55
7.3.250.0110.00616.53
7.3.240.0170.00016.31
7.3.230.0150.00316.39
7.3.210.0100.00716.44
7.3.200.0070.01419.39
7.3.190.0090.01316.58
7.3.180.0070.00716.43
7.3.170.0060.01016.27
7.3.160.0060.00916.29
7.3.120.0100.00714.97
7.2.330.0100.00716.68
7.2.320.0140.00616.24
7.2.310.0150.00616.35
7.2.300.0090.00916.64
7.2.290.0150.00316.73
7.2.00.0000.01419.07
7.1.100.0040.01217.59
7.1.70.0030.00516.65
7.1.60.0170.00319.29
7.1.50.0120.01216.82
7.1.00.0100.07022.40
7.0.200.0060.00616.59
7.0.140.0070.07022.06
7.0.60.0070.06719.98
7.0.50.0000.05318.00
7.0.40.0000.05020.02
7.0.30.0400.06720.25
7.0.20.0330.05020.08
7.0.10.0070.07720.27
7.0.00.0130.07720.37
5.6.210.0170.03720.48
5.6.200.0030.05318.15
5.6.190.0070.08020.77
5.6.180.0330.07720.41
5.6.170.0270.08320.34
5.6.160.0170.07720.50
5.6.150.0070.06318.17
5.6.140.0170.07318.17
5.6.130.0100.06718.24
5.6.120.0100.04021.00
5.6.110.0070.08020.90
5.6.100.0130.07321.13
5.6.90.0030.08020.96
5.6.80.0070.07720.39
5.6.70.4030.03320.40
5.5.350.0130.04720.45
5.5.340.0030.08317.97
5.5.330.0100.06720.21
5.5.320.0030.04720.35
5.5.310.0170.04320.35
5.5.300.0030.04318.09
5.5.290.0030.08017.99
5.5.280.0130.07720.89
5.5.270.0000.05020.97
5.5.260.0100.06720.87
5.5.250.0070.08320.66
5.5.240.0370.06320.30
5.4.450.0130.06719.63
5.4.440.0170.06319.16
5.4.430.0670.05719.58
5.4.420.0630.00019.31
5.4.410.0130.05318.96
5.4.400.0070.06018.82
5.4.390.0170.05718.76
5.4.380.0130.06318.51
5.4.370.0070.03718.53
5.4.360.0000.04318.59
5.4.350.0080.03912.03
5.4.340.0080.04012.02
5.4.320.0050.04312.52
5.4.310.0100.04112.52
5.4.300.0060.03512.52
5.4.290.0050.04012.52
5.4.280.0090.04912.38
5.4.270.0100.03312.38
5.4.260.0090.04012.39
5.4.250.0140.04812.38
5.4.240.0070.03912.38
5.4.230.0070.04212.38
5.4.220.0100.03912.38
5.4.210.0120.03412.38
5.4.200.0090.04312.37
5.4.190.0090.03712.37
5.4.180.0120.03412.37
5.4.170.0050.05712.38
5.4.160.0120.04812.38
5.4.150.0150.05612.37
5.4.140.0090.05512.06
5.4.130.0100.05012.05
5.4.120.0080.05212.00
5.4.110.0070.05312.00
5.4.100.0090.04812.00
5.4.90.0070.05412.00
5.4.80.0070.04012.00
5.4.70.0090.03812.00
5.4.60.0090.03612.00
5.4.50.0070.03611.99
5.4.40.0080.03711.98
5.4.30.0090.06011.98
5.4.20.0050.06111.98
5.4.10.0140.05511.98
5.4.00.0060.06311.48
5.3.290.0040.04112.80
5.3.280.0140.05812.71
5.3.270.0140.05712.73
5.3.260.0130.04812.72
5.3.250.0090.05612.72
5.3.240.0090.05912.72
5.3.230.0070.06112.71
5.3.220.0090.05612.68
5.3.210.0090.05812.68
5.3.200.0070.05412.68
5.3.190.0130.04012.68
5.3.180.0080.04312.68
5.3.170.0100.03812.67
5.3.160.0100.04812.67
5.3.150.0110.05112.67
5.3.140.0120.05112.66
5.3.130.0120.05612.66
5.3.120.0110.05312.66
5.3.110.0080.04212.65
5.3.100.0120.05412.12
5.3.90.0090.07012.10
5.3.80.0090.05012.09
5.3.70.0130.04912.09
5.3.60.0090.03812.07
5.3.50.0060.04012.02
5.3.40.0070.04012.02
5.3.30.0060.03811.98
5.3.20.0080.03911.77
5.3.10.0080.03611.73
5.3.00.0060.04511.72
5.2.170.0100.0309.22
5.2.160.0040.0339.22
5.2.150.0070.0329.21
5.2.140.0090.0389.21
5.2.130.0080.0469.18
5.2.120.0130.0449.18
5.2.110.0080.0509.19
5.2.100.0110.0499.18
5.2.90.0070.0449.18
5.2.80.0160.0699.17
5.2.70.0110.0449.17
5.2.60.0090.0449.13
5.2.50.0090.0459.10
5.2.40.0100.0429.07
5.2.30.0070.0589.05
5.2.20.0080.0439.04
5.2.10.0050.0438.94
5.2.00.0070.0428.82
5.1.60.0060.0358.10
5.1.50.0060.0348.10
5.1.40.0110.0318.08
5.1.30.0060.0388.43
5.1.20.0050.0408.45
5.1.10.0040.0398.17
5.1.00.0060.0378.18
5.0.50.0060.0286.66
5.0.40.0100.0276.46
5.0.30.0070.0426.32
5.0.20.0070.0256.29
5.0.10.0060.0296.27
5.0.00.0030.0436.26
4.4.90.0050.0214.77
4.4.80.0050.0214.75
4.4.70.0060.0214.75
4.4.60.0100.0154.75
4.4.50.0040.0224.77
4.4.40.0040.0344.71
4.4.30.0050.0204.76
4.4.20.0070.0194.85
4.4.10.0040.0224.85
4.4.00.0030.0334.76
4.3.110.0040.0224.67
4.3.100.0020.0234.66
4.3.90.0060.0194.63
4.3.80.0000.0364.58
4.3.70.0050.0194.63
4.3.60.0030.0224.63
4.3.50.0030.0234.63
4.3.40.0050.0334.53
4.3.30.0040.0213.28
4.3.20.0050.0213.26
4.3.10.0040.0223.23
4.3.00.0100.0236.82

preferences:
34.74 ms | 401 KiB | 5 Q