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 $client_options = array('login' => 'SlevogtE', 'password' => 'BBDEXI', 'trace' => 1); private $wsdl; private $client; function __construct(){ $this->wsdl = 'https://' . $this->client_options['login'] . ':' . $this->client_options['password'] . '@tom-test.vgwort.de/services/1.0/pixelService.wsdl' ; $this->client = new SoapClient($this->wsdl, $this->client_options); } // 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.70.0100.00718.57
8.3.60.0080.00818.56
8.3.50.0120.00622.06
8.3.40.0120.00918.80
8.3.30.0070.01018.85
8.3.20.0070.00020.35
8.3.10.0040.00423.65
8.3.00.0040.00420.68
8.2.190.0150.00016.58
8.2.180.0110.00816.50
8.2.170.0030.01322.96
8.2.160.0040.01122.08
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0050.00322.26
8.2.110.0070.00321.13
8.2.100.0040.00817.84
8.2.90.0050.00319.22
8.2.80.0030.00617.97
8.2.70.0040.00818.04
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00720.55
8.2.30.0000.00818.18
8.2.20.0040.00417.72
8.2.10.0000.00917.75
8.2.00.0040.00417.63
8.1.280.0040.01125.92
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.16
8.1.230.0090.00317.82
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0090.00017.23
8.1.190.0000.00817.34
8.1.180.0050.00518.10
8.1.170.0040.00418.57
8.1.160.0040.00422.06
8.1.150.0000.00718.58
8.1.140.0040.00417.45
8.1.130.0000.00717.80
8.1.120.0030.00317.31
8.1.110.0050.00217.23
8.1.100.0030.00517.39
8.1.90.0000.00817.30
8.1.80.0040.00417.45
8.1.70.0030.00317.24
8.1.60.0030.00617.50
8.1.50.0080.00017.45
8.1.40.0040.00417.48
8.1.30.0040.00417.62
8.1.20.0000.00917.54
8.1.10.0040.00417.51
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0040.00418.32
8.0.270.0030.00617.20
8.0.260.0030.00316.74
8.0.250.0040.00416.99
8.0.240.0000.00717.01
8.0.230.0040.00416.90
8.0.220.0040.00416.94
8.0.210.0000.00717.00
8.0.200.0040.00417.05
8.0.190.0040.00417.01
8.0.180.0050.00216.97
8.0.170.0000.00817.01
8.0.160.0000.00716.96
8.0.150.0060.00316.92
8.0.140.0000.00716.81
8.0.130.0030.00313.35
8.0.120.0000.00816.93
8.0.110.0050.00316.98
8.0.100.0030.00616.93
8.0.90.0050.00216.88
8.0.80.0070.01116.94
8.0.70.0040.00416.76
8.0.60.0000.00716.83
8.0.50.0060.00316.96
8.0.30.0120.01016.95
8.0.20.0060.01317.40
8.0.10.0070.00016.97
8.0.00.0050.01316.77
7.4.330.0000.00515.06
7.4.320.0040.00416.52
7.4.300.0000.00716.44
7.4.290.0040.00416.45
7.4.280.0040.00416.38
7.4.270.0030.00316.53
7.4.260.0000.00816.43
7.4.250.0040.00416.40
7.4.240.0070.00016.47
7.4.230.0040.00416.57
7.4.220.0130.00316.57
7.4.210.0070.01016.55
7.4.200.0030.00316.26
7.4.190.0000.00716.59
7.4.160.0100.00516.57
7.4.150.0060.01317.40
7.4.140.0040.01317.86
7.4.130.0080.00916.64
7.4.120.0120.00616.58
7.4.110.0030.01416.55
7.4.100.0110.00616.38
7.4.90.0140.00316.47
7.4.80.0100.00716.57
7.4.70.0120.01116.39
7.4.60.0090.00616.32
7.4.50.0000.00616.55
7.4.40.0060.00622.77
7.4.30.0130.00416.74
7.4.00.0000.01314.95
7.3.330.0060.00013.28
7.3.320.0050.00013.19
7.3.310.0080.00016.20
7.3.300.0000.00716.29
7.3.290.0060.00816.31
7.3.280.0100.00816.26
7.3.270.0150.00317.40
7.3.260.0120.00616.45
7.3.250.0110.00816.38
7.3.240.0070.01016.59
7.3.230.0100.00716.43
7.3.210.0070.01016.62
7.3.200.0080.01219.39
7.3.190.0040.01516.63
7.3.180.0150.00016.58
7.3.170.0090.00616.36
7.3.160.0030.01316.43
7.3.120.0030.01314.75
7.2.330.0130.00316.42
7.2.320.0100.01016.29
7.2.310.0130.00316.30
7.2.300.0120.00916.46
7.2.290.0090.00616.39
7.2.00.0030.01219.32
7.1.100.0030.00917.69
7.1.70.0000.01016.95
7.1.60.0040.00716.86
7.1.50.0090.01516.52
7.1.00.0000.07722.40
7.0.200.0040.01116.66
7.0.140.0030.07321.95
7.0.60.0100.07719.94
7.0.50.0170.03017.87
7.0.40.0100.04320.18
7.0.30.0300.07320.08
7.0.20.0300.07020.33
7.0.10.0100.07020.35
7.0.00.0000.05020.29
5.6.280.0030.07320.92
5.6.210.0100.08020.62
5.6.200.0000.05718.16
5.6.190.0070.05720.33
5.6.180.0300.07020.39
5.6.170.0300.07720.44
5.6.160.0170.08020.52
5.6.150.0070.07318.15
5.6.140.0130.07718.18
5.6.130.0100.03718.17
5.6.120.0100.05021.00
5.6.110.0100.07320.98
5.6.100.0070.04720.95
5.6.90.0070.08321.02
5.6.80.0000.04020.52
5.6.70.4000.04020.54
5.5.350.0070.05720.50
5.5.340.0030.04017.96
5.5.330.0130.05320.56
5.5.320.0300.07720.20
5.5.310.0200.04320.29
5.5.300.0030.06317.98
5.5.290.0130.07717.95
5.5.280.0130.07320.89
5.5.270.0070.05320.95
5.5.260.0030.09020.87
5.5.250.0230.06020.70
5.5.240.0000.08020.15
5.4.450.0800.07719.55
5.4.440.0230.05019.55
5.4.430.0170.06019.63
5.4.420.0270.05319.34
5.4.410.0130.07318.70
5.4.400.0070.05718.71
5.4.390.0130.04718.56
5.4.380.0170.05318.86
5.4.370.0170.05318.60
5.4.360.0170.04718.61
5.4.350.0170.07018.59
5.4.340.0200.04718.77
5.4.320.0040.04612.68
5.4.310.0080.03612.68
5.4.300.0060.03912.69
5.4.290.0100.03812.68
5.4.280.0070.03512.57
5.4.270.0050.04212.57
5.4.260.0070.03712.56
5.4.250.0090.04112.57
5.4.240.0060.04412.57
5.4.230.0060.04012.56
5.4.220.0080.05112.56
5.4.210.0110.04512.56
5.4.200.0070.03812.55
5.4.190.0060.03712.55
5.4.180.0090.03412.55
5.4.170.0050.03812.57
5.4.160.0030.03912.56
5.4.150.0090.04912.56
5.4.140.0060.06412.24
5.4.130.0090.03612.23
5.4.120.0060.05012.19
5.4.110.0070.03512.18
5.4.100.0070.03612.18
5.4.90.0040.05612.19
5.4.80.0070.05312.18
5.4.70.0070.05112.18
5.4.60.0050.04012.18
5.4.50.0040.05512.18
5.4.40.0080.03812.17
5.4.30.0070.03812.16
5.4.20.0050.03812.16
5.4.10.0060.03512.16
5.4.00.0050.03711.65
5.3.290.0090.06412.88
5.3.280.0050.04012.79
5.3.270.0060.04012.80
5.3.260.0080.03912.81
5.3.250.0040.04112.81
5.3.240.0090.03712.81
5.3.230.0090.05412.80
5.3.220.0050.04512.77
5.3.210.0150.03612.77
5.3.200.0070.03912.77
5.3.190.0120.04312.77
5.3.180.0070.05612.77
5.3.170.0120.05312.77
5.3.160.0040.04312.77
5.3.150.0120.03612.77
5.3.140.0060.04112.75
5.3.130.0100.05412.76
5.3.120.0110.04012.75
5.3.110.0070.04112.75
5.3.100.0110.03412.23
5.3.90.0140.06212.21
5.3.80.0150.04812.21
5.3.70.0070.05112.21
5.3.60.0130.05612.19
5.3.50.0100.05112.14
5.3.40.0160.05012.14
5.3.30.0140.05412.10
5.3.20.0080.05411.88
5.3.10.0090.05511.84
5.3.00.0090.06411.83
5.2.170.0100.0509.30
5.2.160.0100.0459.30
5.2.150.0090.0579.30
5.2.140.0100.0489.30
5.2.130.0110.0469.26
5.2.120.0080.0459.26
5.2.110.0120.0699.27
5.2.100.0060.0829.27
5.2.90.0050.0489.26
5.2.80.0120.0479.26
5.2.70.0060.0549.26
5.2.60.0090.0429.21
5.2.50.0090.0439.18
5.2.40.0120.0359.16
5.2.30.0100.0409.13
5.2.20.0100.0519.13
5.2.10.0080.0679.03
5.2.00.0080.0538.91
5.1.60.0080.0428.18
5.1.50.0110.0528.18
5.1.40.0050.0578.16
5.1.30.0100.0458.51
5.1.20.0060.0448.53
5.1.10.0070.0368.25
5.1.00.0070.0508.25
5.0.50.0070.0356.73
5.0.40.0030.0266.59
5.0.30.0060.0326.40
5.0.20.0020.0216.38
5.0.10.0060.0186.36
5.0.00.0050.0306.34
4.4.90.0050.0164.78
4.4.80.0060.0334.75
4.4.70.0040.0264.75
4.4.60.0030.0254.75
4.4.50.0040.0264.77
4.4.40.0060.0324.71
4.4.30.0190.0304.76
4.4.20.0150.0494.84
4.4.10.0040.0244.85
4.4.00.0050.0264.76
4.3.110.0040.0274.67
4.3.100.0020.0234.67
4.3.90.0010.0244.64
4.3.80.0010.0354.58
4.3.70.0030.0224.63
4.3.60.0010.0214.63
4.3.50.0030.0204.63
4.3.40.0060.0284.54
4.3.30.0030.0203.29
4.3.20.0080.0153.27
4.3.10.0010.0233.23
4.3.00.0070.03713.64

preferences:
46.2 ms | 401 KiB | 5 Q