3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oCurl = curl_init( mb_substr( $sPath, 0, 4 ) == 'http' ? $sPath : 'https://qiwi.com/'.$sPath ); # Настройки cURL : curl_setopt_array( $oCurl, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_COOKIEJAR => $this->sCookieFile, CURLOPT_COOKIEFILE => $this->sCookieFile, CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0', CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_HTTPHEADER => mb_substr( $sPath, 0, 4 ) == 'http' ? (is_null( $mPOST ) ? array( 'Accept: application/json, text/javascript, */*; q=0.01', 'X-Requested-With: XMLHttpRequest' ) : array( 'Content-Type: application/json; charset=UTF-8' )) : array( 'Accept: application/json, text/javascript, */*; q=0.01', 'X-Requested-With: XMLHttpRequest' ), ) ); # Если требуется отправить POST - запрос : if( is_array( $mPOST ) || $mPOST != '' || mb_substr( $sPath, 0, 4 ) != 'http' ) { # Настройки Curl подключения : curl_setopt_array( $oCurl, array( CURLOPT_POST => true, CURLOPT_POSTFIELDS => is_array( $mPOST ) ? http_build_query( $mPOST ) : $mPOST, ) ); } # Если существует реферер : if( !is_null( $sReferer ) ) curl_setopt( $oCurl, CURLOPT_REFERER, $sReferer ); # Если требуется указать дополнительные настройки : if( is_array( $aOptions ) && count( $aOptions ) ) curl_setopt_array( $oCurl, $aOptions ); # Получение ответа : $this->sResponse = curl_exec( $oCurl ); # Если произошла ошибка : if( curl_errno( $oCurl ) ) throw new Exception( curl_errno( $oCurl ).' - '.curl_error( $oCurl ) ); # Закрываем соединение : curl_close( $oCurl ); # Сохраняем страницу referer : $sReferer = mb_substr( $sPath, 0, 4 ) == 'http' ? $sPath : 'https://qiwi.com/'.$sPath; # Преобразование ответа в массив : $this->aResponse = json_decode( $this->sResponse, true ); if( json_last_error() != JSON_ERROR_NONE ) $this->aResponse = array(); return $this->sResponse;

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.0150.00316.75
8.3.50.0040.01116.09
8.3.40.0040.01118.83
8.3.30.0120.00318.85
8.3.20.0070.00020.03
8.3.10.0040.00423.48
8.3.00.0040.00423.45
8.2.180.0100.01018.16
8.2.170.0090.01222.96
8.2.160.0110.00320.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.00
8.2.120.0100.00026.35
8.2.110.0040.00422.29
8.2.100.0040.00717.80
8.2.90.0040.00419.02
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0060.00322.34
8.2.30.0040.00420.68
8.2.20.0040.00417.63
8.2.10.0070.00418.02
8.2.00.0050.00218.03
8.1.270.0040.00423.82
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0070.00722.13
8.1.230.0060.00619.15
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0090.00017.22
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00918.53
8.1.160.0040.00420.67
8.1.150.0000.00718.72
8.1.140.0040.00419.54
8.1.130.0030.00317.63
8.1.120.0040.00417.32
8.1.110.0040.00417.34
8.1.100.0020.00517.42
8.1.90.0000.00817.36
8.1.80.0040.00417.27
8.1.70.0000.00717.30
8.1.60.0080.00017.48
8.1.50.0050.00317.43
8.1.40.0000.00817.51
8.1.30.0040.00417.59
8.1.20.0000.00817.50
8.1.10.0060.00317.49
8.1.00.0050.00317.49
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.48
8.0.270.0030.00317.29
8.0.260.0030.00317.16
8.0.250.0040.00416.84
8.0.240.0070.00017.07
8.0.230.0080.00016.98
8.0.220.0000.00716.93
8.0.210.0030.00417.00
8.0.200.0000.00717.07
8.0.190.0030.00517.00
8.0.180.0040.00416.93
8.0.170.0040.00416.86
8.0.160.0040.00416.98
8.0.150.0060.00316.96
8.0.140.0000.00716.80
8.0.130.0040.00413.38
8.0.120.0000.00816.87
8.0.110.0000.00816.83
8.0.100.0000.00716.95
8.0.90.0000.00716.91
8.0.80.0060.00916.93
8.0.70.0030.00516.96
8.0.60.0020.00516.76
8.0.50.0000.00716.84
8.0.30.0070.01117.13
8.0.20.0130.01617.40
8.0.10.0040.00416.87
8.0.00.0090.00916.81
7.4.330.0000.00516.67
7.4.320.0030.00316.38
7.4.300.0000.00616.38
7.4.290.0000.00716.56
7.4.280.0000.00916.63
7.4.270.0000.00716.65
7.4.260.0000.00716.50
7.4.250.0000.00716.60
7.4.240.0020.00516.49
7.4.230.0070.00016.67
7.4.220.0130.00616.51
7.4.210.0070.00716.60
7.4.200.0040.00416.58
7.4.160.0100.00616.77
7.4.150.0120.00917.40
7.4.140.0070.01317.86
7.4.130.0110.00616.61
7.4.120.0100.00816.49
7.4.110.0170.00016.63
7.4.100.0070.01016.54
7.4.90.0070.01116.56
7.4.80.0070.01019.39
7.4.70.0060.01216.61
7.4.60.0130.00316.60
7.4.50.0060.01116.30
7.4.40.0070.01116.32
7.4.30.0090.00916.64
7.4.00.0120.00614.99
7.3.330.0000.00513.16
7.3.320.0050.00013.16
7.3.310.0000.00716.34
7.3.300.0030.00316.27
7.3.290.0050.00316.34
7.3.280.0100.00616.27
7.3.270.0070.01017.40
7.3.260.0100.00716.54
7.3.250.0110.00716.38
7.3.240.0110.00516.31
7.3.230.0160.00616.54
7.3.210.0030.01316.30
7.3.200.0170.00716.31
7.3.190.0090.00616.26
7.3.180.0100.00716.48
7.3.170.0080.00816.36
7.3.160.0040.01116.30
7.2.330.0100.00716.45
7.2.320.0080.00816.53
7.2.310.0000.02016.50
7.2.300.0100.01016.59
7.2.290.0060.00916.38
7.2.60.0070.00716.64
7.2.00.0060.00619.31
7.1.200.0070.00315.53
7.1.100.0060.00617.73
7.1.70.0000.01016.88
7.1.60.0070.01719.06
7.1.50.0090.00316.95
7.1.00.0100.06322.35
7.0.200.0030.00716.78
7.0.60.0100.08319.98
7.0.50.0230.07017.83
7.0.40.0100.06320.27
7.0.30.0270.07320.01
7.0.20.0230.04020.17
7.0.10.0030.04319.99
7.0.00.0000.04320.29
5.6.280.0000.04721.09
5.6.210.0170.07020.74
5.6.200.0030.07318.19
5.6.190.0030.04320.67
5.6.180.0070.03720.39
5.6.170.0200.05020.48
5.6.160.0130.06320.33
5.6.150.0100.07018.16
5.6.140.0030.08318.12
5.6.130.0070.05018.20
5.6.120.0070.08321.16
5.6.110.0100.06721.05
5.6.100.0170.07721.05
5.6.90.0030.06021.09
5.6.80.0000.04320.40
5.5.350.0170.04320.39
5.5.340.0070.08317.98
5.5.330.0100.08020.40
5.5.320.0600.05020.20
5.5.310.0330.06720.21
5.5.300.0100.07717.91
5.5.290.0000.06018.01
5.5.280.0030.06320.75
5.5.270.0170.07020.81
5.5.260.0070.07320.81
5.5.250.0100.07320.63
5.5.240.0170.08020.28

preferences:
54.83 ms | 400 KiB | 5 Q