3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unWebSafeAndPad($oriString) { $pad = ""; if (strlen($oriString) % 4 == 2) { $pad = "=="; } else if (strlen($oriString) % 4 == 3) { $pad = "="; } $aftString=str_replace('-','+',$oriString); $aftString=str_replace('_','/',$aftString); $aftString .=$pad; return $aftString; } $win_price_org="WS9LmQAOGIAKhxmVAAoLX-7A2eImDaKldk0BHQ"; // (*) $encodePrice=urldecode($win_price_org); $safePrice=unWebSafeAndPad($encodePrice); $decodePrice= base64_decode($safePrice); $eKey='2d0aIoOnAp8ZSTXEuqPJEm2GgE4Qp2KHcvxAjRhelSU='; // (*) $eKey=base64_decode($eKey); $iKey='uoVj+Ii4LUInow4xos46phIE2yq3J4otQzcYTfMcmk4='; // (*) $iKey=base64_decode($iKey); $iv=substr($decodePrice,0,16); $p=substr($decodePrice,16,8); $sig=substr($decodePrice,24,4); $pricePad = hash_hmac('sha1',$iv,$eKey,true); $price = $p ^ $pricePad; $priceRaw=unpack('c*',($price)); var_dump($price);

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.0060.00916.63
8.3.50.0070.01118.18
8.3.40.0120.00318.69
8.3.30.0150.00018.79
8.3.20.0050.00321.75
8.3.10.0040.00423.66
8.3.00.0040.00419.78
8.2.180.0150.00616.36
8.2.170.0070.00722.96
8.2.160.0110.00419.46
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0030.00720.74
8.2.110.0000.00922.08
8.2.100.0110.00017.97
8.2.90.0000.00819.26
8.2.80.0000.00818.04
8.2.70.0030.00617.75
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0000.00720.61
8.2.30.0040.00419.23
8.2.20.0070.00018.12
8.2.10.0000.00818.12
8.2.00.0040.00418.17
8.1.280.0100.01325.92
8.1.270.0040.00418.86
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0030.00623.97
8.1.230.0080.00417.76
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.35
8.1.190.0050.00317.22
8.1.180.0030.00518.10
8.1.170.0000.00818.27
8.1.160.0000.00718.89
8.1.150.0060.00318.81
8.1.140.0050.00319.49
8.1.130.0000.00718.95
8.1.120.0000.00717.55
8.1.110.0080.00417.45
8.1.100.0000.00817.45
8.1.90.0050.00217.37
8.1.80.0050.00317.37
8.1.70.0030.00317.48
8.1.60.0050.00217.60
8.1.50.0000.00817.54
8.1.40.0040.00417.54
8.1.30.0080.00017.58
8.1.20.0040.00417.73
8.1.10.0050.00317.41
8.1.00.0030.00617.49
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.50
8.0.270.0000.00717.18
8.0.260.0030.00317.33
8.0.250.0030.00317.01
8.0.240.0070.00016.86
8.0.230.0030.00317.03
8.0.220.0000.00716.89
8.0.210.0040.00416.80
8.0.200.0000.00616.97
8.0.190.0030.00617.00
8.0.180.0000.00916.95
8.0.170.0070.00016.89
8.0.160.0000.00816.82
8.0.150.0000.00816.84
8.0.140.0040.00416.77
8.0.130.0030.00313.22
8.0.120.0040.00416.75
8.0.110.0070.00016.96
8.0.100.0040.00417.01
8.0.90.0000.00716.97
8.0.80.0120.00316.82
8.0.70.0050.00216.76
8.0.60.0000.00816.94
8.0.50.0070.00016.91
8.0.30.0090.01117.22
8.0.20.0150.00717.40
8.0.10.0070.00017.06
8.0.00.0060.01316.77
7.4.330.0000.00515.55
7.4.320.0070.00016.62
7.4.300.0070.00016.60
7.4.290.0030.00316.62
7.4.280.0050.00316.40
7.4.270.0080.00016.61
7.4.260.0080.00016.62
7.4.250.0030.00516.61
7.4.240.0080.00016.63
7.4.230.0040.00416.58
7.4.220.0060.01916.40
7.4.210.0070.00716.56
7.4.200.0040.00416.40
7.4.160.0080.00816.44
7.4.150.0130.00717.40
7.4.140.0150.00817.86
7.4.130.0120.00616.41
7.4.120.0120.00916.54
7.4.110.0100.00716.33
7.4.100.0060.01116.35
7.4.90.0100.00716.51
7.4.80.0070.01019.39
7.4.70.0090.00916.63
7.4.60.0090.00916.45
7.4.50.0070.01016.40
7.4.40.0140.00316.56
7.4.30.0140.00316.32
7.4.00.0070.00715.06
7.3.330.0000.00613.15
7.3.320.0000.00613.39
7.3.310.0030.00316.26
7.3.300.0050.00216.38
7.3.290.0060.00916.37
7.3.280.0100.00716.36
7.3.270.0160.00717.40
7.3.260.0110.00616.61
7.3.250.0090.01016.49
7.3.240.0090.00716.55
7.3.230.0060.01016.35
7.3.210.0140.00316.22
7.3.200.0070.01016.71
7.3.190.0060.00916.49
7.3.180.0070.01316.67
7.3.170.0070.01316.38
7.3.160.0110.00416.63
7.2.330.0110.00616.55
7.2.320.0100.00716.65
7.2.310.0130.00316.47
7.2.300.0030.01316.41
7.2.290.0110.00816.71
7.2.60.0060.00317.00
7.1.200.0060.00615.80
7.1.70.0060.01516.90
7.1.60.0080.00817.11
7.1.50.0080.00816.89
7.1.40.0030.00916.67
7.1.30.0050.01116.54
7.1.20.0000.01616.73
7.1.10.0060.01016.45
7.1.00.0070.00716.62
7.0.200.0080.00316.88
7.0.190.0100.00316.61
7.0.180.0100.00316.29
7.0.170.0030.01216.38
7.0.160.0110.00616.38
7.0.150.0050.01516.33
7.0.140.0000.01316.21
7.0.130.0090.00316.42
7.0.120.0070.00716.58
7.0.110.0060.00616.30
7.0.100.0070.00716.46
7.0.90.0150.00416.43
7.0.80.0070.00416.35
7.0.70.0140.00716.23
7.0.60.0040.00716.34
7.0.50.0050.00816.53
7.0.40.0000.01414.96
7.0.30.0070.00714.96
7.0.20.0000.01114.96
7.0.10.0060.00614.96
7.0.00.0000.00814.96

preferences:
64.23 ms | 400 KiB | 5 Q