3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='https://openload.co/embed/35-S7_SZ1uU/'; $r=file_get_contents($url); 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.70.0180.00316.75
8.3.60.0030.01616.63
8.3.50.0120.01217.38
8.3.40.0080.00819.14
8.3.30.0110.00418.91
8.3.20.0000.00720.29
8.3.10.0080.00021.90
8.3.00.0060.00317.68
8.2.180.0160.00616.75
8.2.170.0160.00322.96
8.2.160.0100.00320.47
8.2.150.0120.00324.18
8.2.140.0090.00624.66
8.2.130.0030.00521.25
8.2.120.0110.00326.35
8.2.110.0100.00019.39
8.2.100.0080.00418.03
8.2.90.0060.00319.22
8.2.80.0030.00617.97
8.2.70.0160.00017.50
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0000.00820.45
8.2.30.0040.00421.00
8.2.20.0050.00618.07
8.2.10.0000.00718.06
8.2.00.0040.00418.05
8.1.280.0120.00925.92
8.1.270.0100.01023.89
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.81
8.1.230.0120.00317.51
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0000.00719.00
8.1.150.0040.00418.81
8.1.140.0000.00819.43
8.1.130.0030.00518.92
8.1.120.0000.00717.47
8.1.110.0000.00717.55
8.1.100.0040.00417.57
8.1.90.0000.00817.48
8.1.80.0000.00717.55
8.1.70.0000.00717.57
8.1.60.0040.00417.66
8.1.50.0040.00417.58
8.1.40.0040.00417.68
8.1.30.0000.00817.77
8.1.20.0090.00017.59
8.1.10.0000.00817.65
8.1.00.0080.00017.70
8.0.300.0080.00018.77
8.0.290.0050.00217.13
8.0.280.0070.00018.45
8.0.270.0000.00717.21
8.0.260.0030.00317.10
8.0.250.0030.00317.15
8.0.240.0000.00817.16
8.0.230.0040.00417.05
8.0.220.0000.00717.14
8.0.210.0040.00417.03
8.0.200.0000.00717.17
8.0.190.0060.00317.20
8.0.180.0060.00317.13
8.0.170.0000.00717.12
8.0.160.0000.00717.02
8.0.150.0000.00817.00
8.0.140.0000.00717.14
8.0.130.0000.00613.50
8.0.120.0030.00616.98
8.0.110.0030.00517.18
8.0.100.0040.00417.12
8.0.90.0000.00817.10
8.0.80.0130.00317.07
8.0.70.0030.00517.09
8.0.60.0040.00417.16
8.0.50.0070.00017.14
8.0.30.0080.01017.19
8.0.20.0120.00917.40
8.0.10.0000.00817.13
8.0.00.0100.00717.04
7.4.330.0020.00215.55
7.4.320.0070.00016.77
7.4.300.0020.00516.77
7.4.290.0030.00316.72
7.4.280.0030.00316.65
7.4.270.0000.00716.79
7.4.260.0050.00013.36
7.4.250.0000.00816.71
7.4.240.0040.00416.73
7.4.230.0000.00716.84
7.4.220.0040.01416.70
7.4.210.0070.01016.88
7.4.200.0000.00716.66
7.4.160.0100.00816.77
7.4.150.0070.01117.40
7.4.140.0080.01017.86
7.4.130.0120.00916.60
7.4.120.0130.00816.76
7.4.110.0090.00916.56
7.4.100.0050.01216.58
7.4.90.0120.00416.67
7.4.80.0100.00719.39
7.4.70.0060.01016.76
7.4.60.0030.01316.53
7.4.50.0060.00916.55
7.4.40.0130.00516.48
7.4.30.0190.00016.49
7.4.10.0070.01415.02
7.4.00.0090.00814.95
7.3.330.0060.00013.37
7.3.320.0060.00013.32
7.3.310.0030.00316.58
7.3.300.0070.00016.52
7.3.290.0080.00816.46
7.3.280.0090.00716.55
7.3.270.0070.01017.40
7.3.260.0100.00716.48
7.3.250.0110.01016.47
7.3.240.0090.01016.75
7.3.230.0100.01016.51
7.3.210.0070.01016.58
7.3.200.0060.01116.76
7.3.190.0090.00616.80
7.3.180.0130.01016.70
7.3.170.0130.00316.32
7.3.160.0030.01416.84
7.3.130.0030.01315.05
7.3.120.0050.00815.07
7.3.110.0100.00815.06
7.3.100.0020.01315.00
7.3.90.0040.01214.84
7.3.80.0090.00714.83
7.3.70.0070.00515.05
7.3.60.0050.01114.76
7.3.50.0090.00414.77
7.3.40.0060.00814.76
7.3.30.0050.00814.99
7.3.20.0040.00916.90
7.3.10.0080.00716.77
7.3.00.0050.00616.84
7.2.330.0040.01516.61
7.2.320.0150.00916.80
7.2.310.0070.01016.75
7.2.300.0030.01516.85
7.2.290.0110.00616.80
7.2.260.0090.00914.89
7.2.250.0020.01815.20
7.2.240.0090.00915.22
7.2.230.0110.00315.09
7.2.220.0060.00914.99
7.2.210.0030.01215.03
7.2.200.0070.00715.18
7.2.190.0090.00714.98
7.2.180.0020.01515.09
7.2.170.0040.01015.29
7.2.160.0030.00714.95
7.2.150.0030.00917.15
7.2.140.0120.00417.13
7.2.130.0030.00817.03
7.2.120.0040.01116.93
7.2.110.0070.00717.05
7.2.100.0030.01216.98
7.2.90.0070.00916.78
7.2.80.0050.00816.87
7.2.70.0070.00317.04
7.2.60.0070.00717.04
7.2.50.0080.00617.07
7.2.40.0030.01217.07
7.2.30.0060.00917.04
7.2.20.0030.00916.99
7.2.10.0050.00817.02
7.2.00.0040.00818.01
7.1.330.0050.00916.07
7.1.320.0000.01515.91
7.1.310.0050.01015.95
7.1.300.0070.01016.01
7.1.290.0110.00515.87
7.1.280.0040.00715.84
7.1.270.0090.00615.87
7.1.260.0100.00615.94
7.1.250.0040.00616.12
7.1.240.0070.01315.75
7.1.230.0040.01415.86
7.1.220.0070.00315.98
7.1.210.0060.00615.96
7.1.200.0130.00415.80
7.1.190.0040.00715.84
7.1.180.0040.00816.12
7.1.170.0000.01415.64
7.1.160.0030.00616.03
7.1.150.0060.00315.80
7.1.140.0030.00715.96
7.1.130.0080.00815.99
7.1.120.0000.01015.79
7.1.110.0070.01016.06
7.1.100.0050.00917.14
7.1.90.0040.00416.02
7.1.80.0000.00916.17
7.1.70.0080.00815.84
7.1.60.0130.01724.83
7.1.50.0120.00724.73
7.1.40.0130.00924.70
7.1.30.0140.00924.63
7.1.20.0150.00924.47
7.1.10.0110.00715.63
7.1.00.0160.00615.59
7.0.330.0060.01015.30
7.0.320.0070.00715.77
7.0.310.0000.01215.61
7.0.300.0060.00315.59
7.0.290.0000.01215.76
7.0.280.0060.00315.36
7.0.270.0040.00415.63
7.0.260.0070.00715.61
7.0.250.0060.00615.55
7.0.240.0030.01115.60
7.0.230.0030.01015.63
7.0.220.0080.00415.67
7.0.210.0000.01315.74
7.0.200.0340.00615.35
7.0.190.0090.00815.50
7.0.180.0090.00815.36
7.0.170.0080.00915.04
7.0.160.0080.00515.21
7.0.150.0000.01115.99
7.0.140.0090.00816.03
7.0.130.0080.00516.24
7.0.120.0070.00815.53
7.0.110.0080.00816.17
7.0.100.0090.00815.16
7.0.90.0080.00615.22
7.0.80.0070.00915.95
7.0.70.0100.00815.17
7.0.60.0050.01315.97
7.0.50.0050.00816.11
7.0.40.0070.00615.22
7.0.30.0050.01114.41
7.0.20.0050.00815.28
7.0.10.0060.00514.93
7.0.00.0030.01214.35
5.6.400.0030.01014.28
5.6.390.0090.00914.48
5.6.380.0120.00314.45
5.6.370.0030.00714.34
5.6.360.0070.00314.36
5.6.350.0040.01114.36
5.6.340.0030.00914.03
5.6.330.0030.01414.41
5.6.320.0120.00314.78
5.6.310.0070.00714.47
5.6.300.0060.00314.64
5.6.290.0030.01314.50
5.6.280.0090.00614.59
5.6.270.0070.00714.39
5.6.260.0090.00614.17
5.6.250.0100.00314.46
5.6.240.0070.01014.39
5.6.230.0040.00814.57
5.6.220.0080.00514.14
5.6.210.0070.00414.38
5.6.200.0000.00914.21
5.6.190.0060.00614.66
5.6.180.0070.01014.54
5.6.170.0080.00414.59
5.6.160.0070.00714.48
5.6.150.0000.00914.45
5.6.140.0120.00314.25
5.6.130.0070.00414.80
5.6.120.0120.00014.29
5.6.110.0000.01514.16
5.6.100.0070.00714.28
5.6.90.0030.00614.58
5.6.80.0070.01014.50
5.6.70.0090.00414.56
5.6.60.0060.00614.41
5.6.50.0110.00314.23
5.6.40.0030.01014.14
5.6.30.0060.00814.11
5.6.20.0080.00414.27
5.6.10.0090.00614.26
5.6.00.0060.00614.26

preferences:
56.04 ms | 401 KiB | 5 Q