3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='https://openload.co/embed/rpexXdfbm4I/'; // function get_url_contents($url) { if (function_exists('file_get_contents')) { $result = file_get_contents($url); } if ($result == '') { $ch = curl_init(); $timeout = 30; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $r = curl_exec($ch); curl_close($ch); } return $result; } $r=$result; preg_match('/<span id="(.*?)">(.*?)<\/span>/',$r,$m); //print_r($m); if($m[2]) { $id=trim($m[2]); $urlcode = []; $first_char = ord($id[0]); $key = $first_char - 50; $maxKey = max(2, $key); $key = min($maxKey, strlen($id) - 22); $t=substr($id,$key,20); $hashMap = array(); $v = str_replace($t, "",$id); $h = 0; while($h < strlen($t)){ $f = substr($t,$h,2); $i = intval($f, 16); $hashMap[$h / 2] = $i; $h += 2; } $h = 0; while ($h < strlen($v)){ $B = substr($v,$h,3); $i = intval($B, 16); if (($h / 3) % 3 == 0) { $i = intval($B, 8);} $index = ($h / 3) % 10; $A = $hashMap[$index]; $i = $i ^ 47; $i = $i ^ $A; $urlcode[]=chr($i); $h += 3; } $link='https://openload.co/stream/'.implode('',$urlcode); echo $link; }

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.110.0120.00620.94
8.3.100.0050.00324.06
8.3.90.0030.00526.77
8.3.80.0040.00719.36
8.3.70.0090.00616.63
8.3.60.0150.00316.75
8.3.50.0070.01117.53
8.3.40.0090.00618.91
8.3.30.0070.00718.86
8.3.20.0080.00020.29
8.3.10.0080.00021.73
8.3.00.0000.01117.91
8.2.230.0130.00622.58
8.2.220.0000.00937.54
8.2.210.0000.00826.77
8.2.200.0040.00418.91
8.2.190.0070.01416.97
8.2.180.0140.00417.13
8.2.170.0100.00722.96
8.2.160.0070.01020.31
8.2.150.0090.00624.18
8.2.140.0110.00424.66
8.2.130.0030.00621.04
8.2.120.0000.00826.35
8.2.110.0060.00321.06
8.2.100.0080.00418.16
8.2.90.0000.00818.09
8.2.80.0000.00817.97
8.2.70.0000.00818.05
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0040.00422.18
8.2.30.0040.00421.05
8.2.20.0080.00018.00
8.2.10.0030.00518.20
8.2.00.0040.00418.18
8.1.290.0060.00330.84
8.1.280.0170.00325.92
8.1.270.0050.00520.60
8.1.260.0070.00026.35
8.1.250.0100.00328.09
8.1.240.0090.00022.15
8.1.230.0080.00322.81
8.1.220.0100.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00917.48
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0000.00818.91
8.1.160.0000.00719.15
8.1.150.0040.00418.95
8.1.140.0080.00019.59
8.1.130.0020.00518.91
8.1.120.0080.00017.66
8.1.110.0030.00517.62
8.1.100.0040.00417.52
8.1.90.0030.00617.45
8.1.80.0000.00717.61
8.1.70.0020.00517.51
8.1.60.0060.00317.75
8.1.50.0040.00417.59
8.1.40.0070.00017.58
8.1.30.0000.00917.69
8.1.20.0000.00717.77
8.1.10.0040.00417.64
8.1.00.0050.00317.70
8.0.300.0050.00319.74
8.0.290.0060.00317.00
8.0.280.0030.00318.51
8.0.270.0030.00317.17
8.0.260.0030.00317.02
8.0.250.0080.00017.15
8.0.240.0050.00317.18
8.0.230.0030.00317.15
8.0.220.0000.00717.08
8.0.210.0000.00717.00
8.0.200.0000.00717.07
8.0.190.0040.00417.13
8.0.180.0060.00617.03
8.0.170.0000.00717.13
8.0.160.0000.00717.11
8.0.150.0080.00017.07
8.0.140.0070.00017.12
8.0.130.0060.00013.48
8.0.120.0040.00417.04
8.0.110.0040.00416.95
8.0.100.0050.00316.98
8.0.90.0040.00417.11
8.0.80.0070.01017.04
8.0.70.0050.00217.02
8.0.60.0040.00416.96
8.0.50.0040.00417.02
8.0.30.0120.00317.31
8.0.20.0110.00917.42
8.0.10.0000.00717.08
8.0.00.0130.01316.90
7.4.330.0060.00015.55
7.4.320.0000.00816.71
7.4.300.0000.00616.87
7.4.290.0000.00716.69
7.4.280.0070.00016.71
7.4.270.0030.00316.62
7.4.260.0030.00313.40
7.4.250.0070.00016.79
7.4.240.0000.00716.79
7.4.230.0070.00016.66
7.4.220.0040.01916.64
7.4.210.0120.00916.75
7.4.200.0070.00016.81
7.4.160.0080.00816.64
7.4.150.0090.01017.40
7.4.140.0060.01317.86
7.4.130.0100.01016.68
7.4.120.0090.01116.80
7.4.110.0070.01016.47
7.4.100.0060.01216.65
7.4.90.0080.01116.71
7.4.80.0090.00919.39
7.4.70.0100.00716.93
7.4.60.0100.00616.59
7.4.50.0060.00916.85
7.4.40.0030.01916.88
7.4.30.0070.01616.65
7.4.00.0100.00515.24
7.3.330.0030.00313.34
7.3.320.0000.00513.35
7.3.310.0040.00416.39
7.3.300.0070.00016.50
7.3.290.0090.00716.55
7.3.280.0080.00816.52
7.3.270.0060.01217.40
7.3.260.0120.00516.69
7.3.250.0120.00716.61
7.3.240.0130.00816.48
7.3.230.0070.01016.57
7.3.210.0100.00716.75
7.3.200.0000.01716.45
7.3.190.0100.00716.56
7.3.180.0160.00616.53
7.3.170.0110.01116.46
7.3.160.0120.00616.52
7.3.120.0100.01014.99
7.3.110.0110.00415.11
7.3.100.0080.00814.63
7.3.90.0060.00915.13
7.3.80.0120.00014.87
7.3.70.0070.00714.70
7.3.60.0080.00315.21
7.3.50.0060.00614.98
7.3.40.0100.00315.06
7.3.30.0080.00615.14
7.3.20.0000.01716.59
7.3.10.0160.00516.89
7.3.00.0090.00816.60
7.2.330.0070.01016.70
7.2.320.0140.01016.58
7.2.310.0180.00316.71
7.2.300.0080.00816.60
7.2.290.0110.00616.79
7.2.250.0100.01015.11
7.2.240.0030.01315.15
7.2.230.0060.00915.25
7.2.220.0070.01015.16
7.2.210.0000.01214.94
7.2.200.0030.01414.82
7.2.190.0100.00315.22
7.2.180.0110.00615.23
7.2.170.0040.00815.18
7.2.130.0040.01216.42
7.2.120.0100.01016.84
7.2.110.0190.00816.61
7.2.100.0140.00716.85
7.2.90.0310.00916.61
7.2.80.0120.00616.32
7.2.70.0280.00016.78
7.2.60.0110.00416.82
7.2.50.0190.00716.37
7.2.40.0220.01116.95
7.2.30.0110.00416.45
7.2.20.0110.01316.80
7.2.10.0120.00916.61
7.2.00.0040.01318.04
7.1.330.0090.00616.08
7.1.320.0080.00816.04
7.1.310.0070.00715.99
7.1.300.0040.01115.87
7.1.290.0040.00815.73
7.1.280.0030.00915.73
7.1.270.0070.01015.88
7.1.260.0090.00315.70
7.1.250.0160.01015.61
7.1.200.0100.00316.03
7.1.100.0030.00918.48
7.1.70.0170.00915.64
7.1.60.0370.00533.46
7.1.50.0340.00933.35
7.1.40.0360.00732.77
7.1.30.0210.01432.95
7.1.20.0290.00833.25
7.1.10.0110.01515.04
7.1.00.0110.00915.03
7.0.200.0130.00614.81
7.0.190.0080.01315.15
7.0.180.0340.01014.50
7.0.170.0100.01014.50
7.0.160.0120.01114.62
7.0.150.0200.00314.59
7.0.140.0170.01014.62
7.0.130.0140.00715.02
7.0.120.0140.00614.77
7.0.110.0030.01714.83
7.0.100.0090.01214.74
7.0.90.0100.01414.59
7.0.80.0280.01314.74
7.0.70.0070.01014.35
7.0.60.0090.00914.56
7.0.50.0100.01314.64
7.0.40.0060.01214.85
7.0.30.0060.01215.05
7.0.20.0040.01714.75
7.0.10.0120.00914.70
7.0.00.0120.00814.74

preferences:
35.17 ms | 403 KiB | 5 Q