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 : echo 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.00716.75
8.3.50.0100.00821.20
8.3.40.0070.00718.87
8.3.30.0090.00618.53
8.3.20.0000.00720.34
8.3.10.0050.00323.66
8.3.00.0080.00023.58
8.2.180.0070.00716.75
8.2.170.0110.00422.96
8.2.160.0100.00320.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.03
8.2.120.0050.00326.35
8.2.110.0060.00321.96
8.2.100.0090.00317.72
8.2.90.0030.00517.75
8.2.80.0000.00817.97
8.2.70.0040.00417.78
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0000.00720.57
8.2.30.0020.00520.67
8.2.20.0030.00617.74
8.2.10.0030.00618.05
8.2.00.0050.00218.10
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00020.87
8.1.230.0040.00718.97
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0090.00017.10
8.1.180.0030.00618.10
8.1.170.0030.00518.35
8.1.160.0020.00520.69
8.1.150.0080.00018.82
8.1.140.0030.00619.50
8.1.130.0030.00317.62
8.1.120.0000.00717.39
8.1.110.0000.00817.35
8.1.100.0040.00417.39
8.1.90.0030.00517.35
8.1.80.0000.00717.39
8.1.70.0070.00017.28
8.1.60.0000.00917.52
8.1.50.0040.00417.41
8.1.40.0000.00817.55
8.1.30.0000.00817.52
8.1.20.0040.00417.61
8.1.10.0030.00617.43
8.1.00.0030.00617.54
8.0.300.0040.00419.78
8.0.290.0050.00316.88
8.0.280.0030.00318.44
8.0.270.0040.00417.24
8.0.260.0000.00617.31
8.0.250.0030.00317.04
8.0.240.0050.00216.89
8.0.230.0000.00717.02
8.0.220.0000.00716.95
8.0.210.0040.00416.88
8.0.200.0030.00317.06
8.0.190.0040.00416.98
8.0.180.0050.00316.95
8.0.170.0040.00416.98
8.0.160.0000.00816.84
8.0.150.0040.00416.84
8.0.140.0040.00416.82
8.0.130.0000.00513.41
8.0.120.0000.00816.89
8.0.110.0080.00016.93
8.0.100.0040.00416.95
8.0.90.0000.00716.82
8.0.80.0090.00616.93
8.0.70.0040.00416.98
8.0.60.0000.00816.97
8.0.50.0050.00216.81
8.0.30.0070.01317.06
8.0.20.0090.00917.40
8.0.10.0000.00716.87
8.0.00.0080.00916.76
7.4.330.0020.00216.71
7.4.320.0000.00716.44
7.4.300.0000.00616.39
7.4.290.0030.00316.60
7.4.280.0030.00616.49
7.4.270.0050.00316.58
7.4.260.0000.00716.47
7.4.250.0040.00416.45
7.4.240.0020.00516.48
7.4.230.0030.00316.29
7.4.220.0070.01416.70
7.4.210.0060.00816.68
7.4.200.0000.00716.48
7.4.160.0050.00916.48
7.4.150.0090.01217.40
7.4.140.0110.01117.86
7.4.130.0080.00816.50
7.4.120.0110.00716.56
7.4.110.0060.01216.76
7.4.100.0000.01916.40
7.4.90.0130.00416.62
7.4.80.0040.01419.39
7.4.70.0080.01216.42
7.4.60.0060.00916.32
7.4.50.0040.01116.39
7.4.40.0020.01416.46
7.4.30.0100.00716.54
7.4.10.0070.01014.76
7.4.00.0070.00814.98
7.3.330.0000.00513.30
7.3.320.0000.00513.05
7.3.310.0030.00316.38
7.3.300.0060.00016.33
7.3.290.0000.00716.30
7.3.280.0110.00816.33
7.3.270.0130.00717.40
7.3.260.0030.01316.35
7.3.250.0050.01316.50
7.3.240.0120.00716.45
7.3.230.0060.01616.39
7.3.210.0130.01016.36
7.3.200.0070.01116.34
7.3.190.0110.01016.56
7.3.180.0100.00716.21
7.3.170.0140.00716.52
7.3.160.0130.00216.27
7.3.130.0090.00614.90
7.3.120.0040.00714.77
7.3.110.0040.01414.53
7.3.100.0030.01214.68
7.3.90.0030.01014.75
7.3.80.0000.01014.80
7.3.70.0030.01014.94
7.3.60.0030.00814.77
7.3.50.0100.00314.80
7.3.40.0150.00314.91
7.3.30.0040.01114.78
7.3.20.0110.00416.31
7.3.10.0100.00316.51
7.3.00.0110.00416.60
7.2.330.0130.00416.51
7.2.320.0000.01616.61
7.2.310.0080.00816.57
7.2.300.0110.00716.40
7.2.290.0040.01216.29
7.2.260.0000.01414.61
7.2.250.0070.01114.90
7.2.240.0030.00914.71
7.2.230.0100.00614.86
7.2.220.0070.00314.97
7.2.210.0090.00614.89
7.2.200.0090.00615.04
7.2.190.0070.00714.89
7.2.180.0040.00715.09
7.2.170.0040.01114.83
7.2.160.0060.00914.82
7.2.150.0100.00316.83
7.2.140.0090.00016.92
7.2.130.0070.00716.70
7.2.120.0040.00816.65
7.2.110.0030.00716.55
7.2.100.0030.00916.88
7.2.90.0030.00916.80
7.2.80.0000.01316.65
7.2.70.0030.00616.72
7.2.60.0070.00816.66
7.2.50.0080.00816.66
7.2.40.0030.01016.67
7.2.30.0030.00916.77
7.2.20.0090.00616.82
7.2.10.0090.00916.81
7.2.00.0080.00518.13
7.1.330.0000.01515.35
7.1.320.0140.00015.66
7.1.310.0060.00615.26
7.1.300.0040.01115.66
7.1.290.0070.01015.51
7.1.280.0030.01015.48
7.1.270.0090.00615.59
7.1.260.0030.00715.43
7.1.250.0060.00315.67
7.1.240.0080.00415.61
7.1.230.0060.00915.63
7.1.220.0000.01415.72
7.1.210.0060.00615.73
7.1.200.0060.00615.66
7.1.190.0030.01015.59
7.1.180.0100.00315.66
7.1.170.0000.01115.35
7.1.160.0000.01515.73
7.1.150.0070.00315.71
7.1.140.0070.00715.24
7.1.130.0030.01015.75
7.1.120.0000.00915.61
7.1.110.0000.01715.39
7.1.100.0070.00816.86
7.1.90.0050.00515.62
7.1.80.0060.00615.56
7.1.70.0110.00116.32
7.1.60.0100.00717.34
7.1.50.0100.00716.06
7.1.40.0070.00715.68
7.1.30.0040.00415.36
7.1.20.0000.01115.70
7.1.10.0000.01415.46
7.1.00.0070.04019.00
7.0.330.0040.00415.23
7.0.320.0000.01015.33
7.0.310.0090.00015.23
7.0.300.0040.00715.36
7.0.290.0030.00915.18
7.0.280.0070.01015.19
7.0.270.0030.00915.29
7.0.260.0120.00315.20
7.0.250.0090.00615.45
7.0.240.0090.00315.36
7.0.230.0070.00715.49
7.0.220.0030.01015.37
7.0.210.0030.00615.22
7.0.200.0060.00415.94
7.0.190.0070.00315.16
7.0.180.0060.00915.11
7.0.170.0040.00415.19
7.0.160.0060.00615.13
7.0.150.0000.01415.04
7.0.140.0080.00315.51
7.0.130.0140.00015.16
7.0.120.0040.00415.39
7.0.110.0030.01015.28
7.0.100.0070.00715.06
7.0.90.0090.00615.38
7.0.80.0040.01115.24
7.0.70.0110.00315.17
7.0.60.0140.03817.62
7.0.50.0080.04316.57
7.0.40.0080.04216.62
7.0.30.0150.03816.74
7.0.20.0170.03816.78
7.0.10.0040.02916.61
7.0.00.0070.02416.60
5.6.400.0040.00413.97
5.6.390.0060.00314.29
5.6.380.0000.00914.44
5.6.370.0040.01113.96
5.6.360.0030.01014.40
5.6.350.0120.00313.86
5.6.340.0030.00614.07
5.6.330.0030.01213.95
5.6.320.0070.01014.08
5.6.310.0070.00714.12
5.6.300.0000.01514.42
5.6.290.0030.01314.30
5.6.280.0000.03617.55
5.6.270.0070.00714.23
5.6.260.0090.00614.07
5.6.250.0000.01614.31
5.6.240.0030.01014.08
5.6.230.0080.00314.03
5.6.220.0120.00614.41
5.6.210.0080.02717.29
5.6.200.0070.04716.16
5.6.190.0070.02017.35
5.6.180.0140.02017.39
5.6.170.0140.02617.38
5.6.160.0120.03517.36
5.6.150.0080.02816.17
5.6.140.0100.04216.11
5.6.130.0060.02616.04
5.6.120.0040.02917.60
5.6.110.0150.03017.51
5.6.100.0080.03817.54
5.6.90.0060.04817.44
5.6.80.0020.02717.33
5.6.70.0090.00613.93
5.6.60.0040.00714.11
5.6.50.0040.01114.17
5.6.40.0120.00313.82
5.6.30.0060.00614.12
5.6.20.0070.00713.82
5.6.10.0100.00313.95
5.6.00.0030.00614.00
5.5.380.0080.00413.97
5.5.370.0120.00314.32
5.5.360.0040.00814.01
5.5.350.0150.03217.19
5.5.340.0030.03715.98
5.5.330.0060.03917.26
5.5.320.0300.04417.11
5.5.310.0210.03017.36
5.5.300.0050.03516.13
5.5.290.0050.03316.00
5.5.280.0050.04817.45
5.5.270.0040.04817.62
5.5.260.0040.02417.38
5.5.250.0100.04317.24
5.5.240.0130.03817.06
5.5.230.0030.00913.74
5.5.220.0060.00613.73
5.5.210.0070.00714.09
5.5.200.0090.00013.84
5.5.190.0030.00713.65
5.5.180.0000.00813.73
5.5.170.0110.00314.11
5.5.160.0080.00814.07
5.5.150.0000.01014.23
5.5.140.0080.00014.04
5.5.130.0080.00314.16
5.5.120.0090.00314.12
5.5.110.0070.00714.12
5.5.100.0090.00313.86
5.5.90.0040.00413.90
5.5.80.0000.01213.77
5.5.70.0080.00013.96
5.5.60.0030.00613.80
5.5.50.0000.01113.96
5.5.40.0000.00814.07
5.5.30.0000.01114.09
5.5.20.0080.00313.60
5.5.10.0030.00614.08
5.5.00.0080.00413.89

preferences:
64.65 ms | 401 KiB | 5 Q