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)); echo $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.0130.00716.63
8.3.50.0000.01418.16
8.3.40.0040.01118.97
8.3.30.0070.00718.85
8.3.20.0000.00821.60
8.3.10.0000.00821.77
8.3.00.0050.00319.66
8.2.180.0150.00016.50
8.2.170.0120.00622.96
8.2.160.0070.00719.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00422.13
8.2.120.0050.00326.35
8.2.110.0090.00022.15
8.2.100.0100.00317.84
8.2.90.0060.00319.41
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0000.01017.93
8.2.50.0080.00018.10
8.2.40.0000.00820.50
8.2.30.0060.00319.27
8.2.20.0050.00218.20
8.2.10.0040.00418.13
8.2.00.0070.00018.13
8.1.280.0090.01225.92
8.1.270.0040.00420.69
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0140.00324.03
8.1.230.0070.00417.70
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0040.00418.60
8.1.160.0000.00718.83
8.1.150.0000.00818.94
8.1.140.0000.00719.54
8.1.130.0000.00718.81
8.1.120.0000.00817.41
8.1.110.0050.00317.37
8.1.100.0000.00817.39
8.1.90.0070.00017.45
8.1.80.0040.00417.37
8.1.70.0060.00317.46
8.1.60.0040.00417.55
8.1.50.0000.00717.45
8.1.40.0080.00017.56
8.1.30.0000.00817.55
8.1.20.0000.00817.65
8.1.10.0000.00817.52
8.1.00.0000.00717.46
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0070.00018.45
8.0.270.0000.00716.81
8.0.260.0030.00317.16
8.0.250.0000.00816.98
8.0.240.0050.00216.92
8.0.230.0030.00316.91
8.0.220.0000.00716.92
8.0.210.0030.00416.92
8.0.200.0000.00716.84
8.0.190.0080.00417.00
8.0.180.0040.00416.98
8.0.170.0030.00916.82
8.0.160.0030.00517.01
8.0.150.0040.00416.95
8.0.140.0030.00416.92
8.0.130.0000.00613.33
8.0.120.0060.00316.90
8.0.110.0080.00016.91
8.0.100.0050.00216.94
8.0.90.0050.00216.80
8.0.80.0060.01516.89
8.0.70.0020.00516.77
8.0.60.0030.00516.81
8.0.50.0030.00516.68
8.0.30.0080.00917.20
8.0.20.0070.01217.40
8.0.10.0040.00416.93
8.0.00.0060.01016.83
7.4.330.0000.00515.55
7.4.320.0070.00016.67
7.4.300.0000.00716.46
7.4.290.0000.00616.63
7.4.280.0060.00316.50
7.4.270.0020.00516.59
7.4.260.0050.00216.62
7.4.250.0040.00316.49
7.4.240.0000.00716.50
7.4.230.0030.00316.62
7.4.220.0150.01116.61
7.4.210.0110.00316.49
7.4.200.0040.00416.42
7.4.160.0070.00916.40
7.4.150.0060.01217.40
7.4.140.0100.00717.86
7.4.130.0120.00616.44
7.4.120.0170.00316.48
7.4.110.0060.01616.66
7.4.100.0140.00416.50
7.4.90.0170.00016.55
7.4.80.0090.00919.39
7.4.70.0120.00616.44
7.4.60.0130.00316.52
7.4.50.0070.01116.37
7.4.40.0150.00616.54
7.4.30.0130.00716.39
7.4.00.0100.00715.00
7.3.330.0000.00513.36
7.3.320.0030.00313.30
7.3.310.0000.00716.26
7.3.300.0000.00716.29
7.3.290.0070.01016.41
7.3.280.0080.00916.36
7.3.270.0070.01017.40
7.3.260.0100.01016.57
7.3.250.0130.00616.43
7.3.240.0110.00916.36
7.3.230.0080.01216.33
7.3.210.0070.01016.50
7.3.200.0070.01316.66
7.3.190.0150.00616.62
7.3.180.0070.01416.48
7.3.170.0110.00616.54
7.3.160.0130.00716.34
7.2.330.0100.00716.72
7.2.320.0160.00616.64
7.2.310.0140.00316.65
7.2.300.0080.00816.63
7.2.290.0110.00616.69
7.2.60.0030.01116.77
7.2.00.0070.00719.31
7.1.200.0060.00915.87
7.1.100.0000.01218.38
7.1.70.0040.00718.71
7.1.60.0040.00718.71
7.1.50.0060.00918.71
7.1.40.0000.02218.71
7.1.30.0070.00418.71
7.1.20.0060.01618.71
7.1.10.0030.00518.71
7.1.00.0000.01018.71
7.0.200.0030.00618.71
7.0.190.0080.00318.71
7.0.180.0000.00718.71
7.0.170.0040.00418.71
7.0.160.0070.00418.71
7.0.150.0050.00218.71
7.0.140.0040.00418.71
7.0.130.0040.00418.71
7.0.120.0000.01018.71
7.0.110.0000.00818.71
7.0.100.0000.00818.71
7.0.90.0000.00818.71
7.0.80.0000.00718.71
7.0.70.0000.00818.71
7.0.60.0000.01518.71
7.0.50.0000.00818.71
7.0.40.0030.00518.71
7.0.30.0040.00418.71
7.0.20.0000.00818.71
7.0.10.0040.00718.71
7.0.00.0030.00618.71

preferences:
70.46 ms | 401 KiB | 5 Q