3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XMLTransactionHander { public function __construct($params) { $this->URL = $params[0]; $this->XMLRequest = $params[1]; $this->XMLResponseRaw = $params[2]; $this->XPath = $params[3]; $this->errno = $params[4]; } function curlRequest() { // Configure headers, etc for request $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $this->URL); curl_setopt($ch, CURLOPT_TIMEOUT, 180); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $this->XMLRequest); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $httpHeader = array("Content-Type: text/xml; charset=UTF-8", "Content-Encoding: UTF-8"); curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeader); // Execute request, store response and HTTP response code $data=curl_exec($ch); $this->errno = curl_getinfo( $ch, CURLINFO_HTTP_CODE ); curl_close($ch); return($data); } function something(){ return($this->URL.' '.$this->XMLRequest); } }

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.0110.01116.63
8.3.50.0050.01121.94
8.3.40.0070.00718.44
8.3.30.0140.00018.96
8.3.20.0040.00420.30
8.3.10.0050.00321.90
8.3.00.0030.00519.13
8.2.180.0120.00618.43
8.2.170.0110.00422.96
8.2.160.0040.01220.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00022.08
8.2.110.0090.00022.20
8.2.100.0110.00017.78
8.2.90.0070.00019.05
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0030.00617.97
8.2.30.0040.00417.88
8.2.20.0030.00517.65
8.2.10.0080.00018.01
8.2.00.0040.00417.59
8.1.280.0040.01125.92
8.1.270.0000.00822.19
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00823.99
8.1.230.0050.00519.21
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0030.00517.28
8.1.180.0050.00318.10
8.1.170.0060.00918.24
8.1.160.0070.00021.86
8.1.150.0040.00418.42
8.1.140.0030.00617.27
8.1.130.0050.00317.84
8.1.120.0070.00017.32
8.1.110.0030.00417.39
8.1.100.0040.00417.26
8.1.90.0070.00017.25
8.1.80.0030.00317.22
8.1.70.0000.00817.36
8.1.60.0050.00317.46
8.1.50.0040.00417.38
8.1.40.0000.00717.31
8.1.30.0050.00317.48
8.1.20.0000.00717.50
8.1.10.0050.00317.30
8.1.00.0040.00417.35
8.0.300.0040.00418.77
8.0.290.0040.00416.93
8.0.280.0030.00318.39
8.0.270.0000.00717.21
8.0.260.0030.00316.79
8.0.250.0000.00716.86
8.0.240.0000.00716.86
8.0.230.0000.00716.73
8.0.220.0040.00416.80
8.0.210.0030.00416.86
8.0.200.0000.00616.85
8.0.190.0070.00016.88
8.0.180.0040.00416.84
8.0.170.0000.00816.79
8.0.160.0070.00016.86
8.0.150.0000.00716.63
8.0.140.0030.00616.80
8.0.130.0000.00513.19
8.0.120.0000.00816.79
8.0.110.0060.00316.63
8.0.100.0000.00716.61
8.0.90.0040.00416.63
8.0.80.0000.01816.77
8.0.70.0000.00716.86
8.0.60.0000.00716.59
8.0.50.0040.00416.64
8.0.30.0050.01316.85
8.0.20.0090.01217.40
8.0.10.0040.00416.94
8.0.00.0130.01016.77
7.4.330.0050.00015.00
7.4.320.0000.00616.48
7.4.300.0000.00816.54
7.4.290.0030.00316.44
7.4.280.0080.00016.32
7.4.270.0040.00416.39
7.4.260.0070.00016.31
7.4.250.0040.00416.38
7.4.240.0020.00516.44
7.4.230.0000.00616.21
7.4.220.0110.00716.61
7.4.210.0070.00816.44
7.4.200.0060.00316.62
7.4.190.0040.00416.36
7.4.160.0140.00716.64
7.4.150.0100.01017.40
7.4.140.0070.01217.86
7.4.130.0060.01116.33
7.4.120.0080.01416.43
7.4.110.0140.01016.38
7.4.100.0040.01416.21
7.4.90.0100.00716.43
7.4.80.0130.01019.39
7.4.70.0060.00916.48
7.4.60.0030.01316.28
7.4.50.0050.00316.40
7.4.40.0030.01422.77
7.4.30.0070.01316.50
7.4.00.0030.01314.88
7.3.330.0000.00513.21
7.3.320.0050.00013.21
7.3.310.0000.00716.18
7.3.300.0030.00316.17
7.3.290.0140.00016.20
7.3.280.0100.00916.20
7.3.270.0070.01417.40
7.3.260.0190.00016.23
7.3.250.0130.00416.30
7.3.240.0190.00016.28
7.3.230.0130.00316.45
7.3.210.0070.01016.19
7.3.200.0090.01419.39
7.3.190.0130.00316.29
7.3.180.0030.01216.50
7.3.170.0070.01116.27
7.3.160.0080.00816.31
7.3.120.0040.00814.67
7.2.330.0090.00916.48
7.2.320.0090.00916.38
7.2.310.0060.01316.45
7.2.300.0100.00716.32
7.2.290.0140.00316.55
7.2.00.0090.00619.08
7.1.100.0040.00717.93
7.1.70.0030.01116.84
7.1.60.0090.01619.33
7.1.50.0140.01016.97
7.1.00.0000.08022.36
7.0.200.0060.00316.53
7.0.140.0030.07322.09
7.0.60.0170.03320.05
7.0.50.0000.05017.87
7.0.40.0130.08020.23
7.0.30.0330.06320.17
7.0.20.0270.05720.23
7.0.10.0230.08320.27
7.0.00.0130.07020.20
5.6.280.0030.07020.85
5.6.210.0170.07720.57
5.6.200.0000.04318.25
5.6.190.0100.07320.52
5.6.180.3670.03720.70
5.6.170.0300.05720.52
5.6.160.0100.06020.54
5.6.150.0070.05318.19
5.6.140.0070.08718.18
5.6.130.0200.07318.14
5.6.120.0070.04320.92
5.6.110.0130.07320.97
5.6.100.0100.05021.01
5.6.90.0070.04321.01
5.6.80.0130.07320.43
5.6.70.0300.06020.40
5.5.350.0230.06320.39
5.5.340.0030.06017.97
5.5.330.0030.04020.31
5.5.320.0170.07720.35
5.5.310.0300.07720.32
5.5.300.0100.04717.96
5.5.290.0030.08718.07
5.5.280.0000.07720.79
5.5.270.0070.07320.82
5.5.260.0030.09320.67
5.5.250.0070.08020.48
5.5.240.0100.07020.29
5.4.450.0870.03719.41
5.4.440.0800.05719.21
5.4.430.0870.06019.27
5.4.420.0670.00019.53
5.4.410.0100.05318.80
5.4.400.0130.05718.75
5.4.390.0170.05318.78
5.4.380.0300.05018.63
5.4.370.0130.04718.71
5.4.360.0100.03718.75
5.4.350.0050.03612.04
5.4.340.0030.03712.04
5.4.320.0050.04212.52
5.4.310.0060.04112.51
5.4.300.0060.04412.52
5.4.290.0060.04412.52
5.4.280.0100.03612.41
5.4.270.0100.04412.41
5.4.260.0080.03512.41
5.4.250.0070.03612.41
5.4.240.0070.05612.41
5.4.230.0080.04012.41
5.4.220.0090.03712.41
5.4.210.0110.04512.41
5.4.200.0080.03612.41
5.4.190.0050.04412.40
5.4.180.0110.04712.40
5.4.170.0150.04312.40
5.4.160.0400.08312.39
5.4.150.0180.04112.39
5.4.140.0120.04912.07
5.4.130.0130.04612.06
5.4.120.0220.03612.02
5.4.110.0110.04512.02
5.4.100.0160.04212.01
5.4.90.0190.03812.01
5.4.80.0200.03712.01
5.4.70.0110.04512.00
5.4.60.0170.03912.01
5.4.50.0190.03712.01
5.4.40.0210.03511.99
5.4.30.0130.04411.99
5.4.20.0110.04712.00
5.4.10.0190.03711.99
5.4.00.0150.04011.48
5.3.290.0070.04812.80
5.3.280.0100.05012.71
5.3.270.0150.04512.73
5.3.260.0140.04612.72
5.3.250.0150.04412.72
5.3.240.0400.07912.72
5.3.230.0210.04012.71
5.3.220.0180.04212.68
5.3.210.0150.04512.68
5.3.200.0150.04612.68
5.3.190.0140.04612.67
5.3.180.0220.03712.67
5.3.170.0150.04512.67
5.3.160.0140.04612.67
5.3.150.0170.04312.67
5.3.140.0200.04012.66
5.3.130.0130.04712.66
5.3.120.0110.05612.66
5.3.110.0280.06312.66
5.3.100.0190.04212.13
5.3.90.0160.04112.11
5.3.80.0200.03912.10
5.3.70.0180.04212.10
5.3.60.0160.04512.09
5.3.50.0120.07712.03
5.3.40.0110.04812.04
5.3.30.0190.05012.00
5.3.20.0220.07011.79
5.3.10.0170.04011.74
5.3.00.0160.04111.73
5.2.170.0250.0549.24
5.2.160.0110.0369.23
5.2.150.0130.0369.23
5.2.140.0110.0369.23
5.2.130.0100.0359.20
5.2.120.0130.0339.19
5.2.110.0090.0409.20
5.2.100.0140.0339.20
5.2.90.0160.0329.20
5.2.80.0140.0349.18
5.2.70.0390.1009.19
5.2.60.0120.0369.14
5.2.50.0130.0369.11
5.2.40.0100.0399.09
5.2.30.0140.0339.06
5.2.20.0110.0399.06
5.2.10.0170.0328.96
5.2.00.0140.0368.81
5.1.60.0130.0288.09
5.1.50.0100.0328.09
5.1.40.0160.0268.09
5.1.30.0110.0328.43
5.1.20.0170.0288.46
5.1.10.0120.0328.18
5.1.00.0150.0268.18
5.0.50.0100.0246.66
5.0.40.0110.0226.51
5.0.30.0110.0356.33
5.0.20.0070.0256.30
5.0.10.0110.0206.28
5.0.00.0100.0346.27
4.4.90.0040.0214.78
4.4.80.0060.0184.75
4.4.70.0060.0204.76
4.4.60.0050.0214.75
4.4.50.0090.0164.77
4.4.40.0060.0314.71
4.4.30.0090.0164.75
4.4.20.0080.0174.84
4.4.10.0060.0194.85
4.4.00.0060.0294.76
4.3.110.0090.0164.67
4.3.100.0070.0184.66
4.3.90.0060.0184.64
4.3.80.0050.0294.59
4.3.70.0070.0174.63
4.3.60.0070.0174.63
4.3.50.0060.0214.63
4.3.40.0100.0254.54
4.3.30.0050.0193.31
4.3.20.0030.0213.29
4.3.10.0030.0203.26
4.3.00.0030.01315.59

preferences:
76.44 ms | 401 KiB | 5 Q