3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Signature { private $salt = '00f40f6dd20548c514e62b666ebb9e98'; public function setSalt($salt) { $this->salt = $salt; } public function generate($orderNumber, $orderAmount) { if( !empty($orderNumber) && !empty($orderAmount) && isset($this->salt) ) { $orderId = htmlentities($orderNumber); $orderAmount = htmlentities($orderAmount); $amountSum = floatval(str_replace(array(',', ' ', "'", '`'), array('.', '', '', ''), $orderAmount)) * 100; $salt = $this->salt; $signature = md5($orderId.'&'.$orderAmount.'&'.$salt); return $signature; } else { throw new Exception("Ошибка: Не верно переданны параметры для генерации сигнатуры", 1); return 0; } } } $sign = new Signature; $orderNumber = 222; $orderAmount = 200; $signature = $sign->generate($orderNumber, $orderAmount); echo 'http://mirusoft.ru/include/payments/aq.php?Signature='.$signature.'&Order_ID='.$orderNumber.'&Subtotal='.$orderAmount.'&FirstName=Ivan&LastName=Ivanov&Email=ivan@ivanov.ru&Phone=1234567890';

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.00918.35
8.3.50.0170.00521.21
8.3.40.0070.01018.85
8.3.30.0170.00020.31
8.3.20.0040.00420.16
8.3.10.0080.00022.09
8.3.00.0080.00022.51
8.2.180.0100.01016.63
8.2.170.0110.00722.96
8.2.160.0070.01022.26
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0080.00020.72
8.2.110.0000.00922.16
8.2.100.0040.00717.91
8.2.90.0000.00719.08
8.2.80.0030.00519.43
8.2.70.0030.00617.50
8.2.60.0050.00317.92
8.2.50.0080.00018.07
8.2.40.0000.00919.82
8.2.30.0000.00719.48
8.2.20.0080.00017.68
8.2.10.0000.00817.79
8.2.00.0030.00617.79
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0070.00428.09
8.1.240.0060.00323.96
8.1.230.0120.00019.17
8.1.220.0040.00417.76
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0030.00517.41
8.1.180.0080.00019.01
8.1.170.0000.00818.50
8.1.160.0040.00418.93
8.1.150.0000.00718.74
8.1.140.0040.00417.53
8.1.130.0040.00417.87
8.1.120.0040.00417.42
8.1.110.0050.00217.46
8.1.100.0000.00717.52
8.1.90.0000.00717.57
8.1.80.0070.00017.48
8.1.70.0050.00217.47
8.1.60.0030.00617.59
8.1.50.0040.00417.62
8.1.40.0000.00817.57
8.1.30.0080.00017.61
8.1.20.0030.00617.66
8.1.10.0080.00017.59
8.1.00.0040.00417.39
8.0.300.0060.00318.77
8.0.290.0050.00317.04
8.0.280.0030.00518.48
8.0.270.0020.00517.30
8.0.260.0030.00316.80
8.0.250.0030.00417.04
8.0.240.0040.00816.88
8.0.230.0030.00316.98
8.0.220.0000.00716.82
8.0.210.0000.00816.91
8.0.200.0000.00717.08
8.0.190.0000.00817.08
8.0.180.0040.00416.94
8.0.170.0000.00816.81
8.0.160.0050.00316.85
8.0.150.0070.00016.89
8.0.140.0000.00716.92
8.0.130.0000.00613.34
8.0.120.0000.00716.92
8.0.110.0040.00416.87
8.0.100.0070.00016.88
8.0.90.0000.00716.88
8.0.80.0090.00616.84
8.0.70.0050.00216.91
8.0.60.0040.00416.81
8.0.50.0040.00416.96
8.0.30.0080.01217.14
8.0.20.0160.00317.40
8.0.10.0050.00317.09
8.0.00.0180.02116.91
7.4.330.0000.00415.00
7.4.320.0000.00616.53
7.4.300.0030.00316.55
7.4.290.0000.00716.65
7.4.280.0040.00416.46
7.4.270.0000.00716.67
7.4.260.0050.00313.29
7.4.250.0060.00316.65
7.4.240.0000.00716.52
7.4.230.0030.00316.76
7.4.220.0090.01316.58
7.4.210.0060.00916.65
7.4.200.0070.00016.63
7.4.190.0080.00016.59
7.4.160.0060.00916.57
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0090.00816.42
7.4.120.0080.00816.73
7.4.110.0110.01116.47
7.4.100.0100.00716.71
7.4.90.0100.00716.50
7.4.80.0090.01219.39
7.4.70.0100.00716.50
7.4.60.0100.00716.51
7.4.50.0000.00916.31
7.4.40.0100.00722.77
7.4.30.0070.01016.66
7.4.00.0120.00314.64
7.3.330.0000.00513.32
7.3.320.0000.00613.27
7.3.310.0000.00716.21
7.3.300.0040.00416.38
7.3.290.0080.00816.41
7.3.280.0100.00916.32
7.3.270.0140.00317.40
7.3.260.0100.01116.38
7.3.250.0120.00516.47
7.3.240.0070.01016.35
7.3.230.0030.01316.50
7.3.210.0070.01016.40
7.3.200.0100.01019.39
7.3.190.0060.01216.28
7.3.180.0070.01016.55
7.3.170.0060.00916.58
7.3.160.0100.00716.52
7.3.120.0070.01114.83
7.2.330.0110.00616.44
7.2.320.0100.01016.84
7.2.310.0230.00016.68
7.2.300.0030.01316.53
7.2.290.0070.01016.65
7.2.00.0030.01319.25
7.1.100.0000.00818.35
7.1.70.0060.00617.34
7.1.60.0100.01319.21
7.1.50.0040.01116.92
7.1.00.0070.03022.45
7.0.200.0620.00714.43
7.0.140.0000.07722.09
7.0.100.0170.07020.05
7.0.90.0070.08019.88
7.0.80.0130.07319.98
7.0.70.0130.07319.91
7.0.60.0100.04720.05
7.0.50.0130.08020.30
7.0.40.0030.07720.11
7.0.30.0170.07320.13
7.0.20.0070.07720.11
7.0.10.0000.08320.13
7.0.00.0070.07320.06
5.6.280.0070.07020.90
5.6.250.0070.08320.63
5.6.240.0100.07720.50
5.6.230.0000.08720.50
5.6.220.0130.07720.65
5.6.210.0070.08320.63
5.6.200.0100.08321.02
5.6.190.0170.06721.04
5.6.180.0130.07321.05
5.6.170.0070.07721.09
5.6.160.0000.07720.97
5.6.150.0130.07021.18
5.6.140.0070.07721.09
5.6.130.0000.08721.04
5.6.120.0100.06721.05
5.6.110.0030.08020.93
5.6.100.0200.07021.02
5.6.90.0100.08021.15
5.6.80.0130.07020.41
5.6.70.0170.07020.32
5.6.60.0070.07720.45
5.6.50.0170.07320.34
5.6.40.0170.07720.45
5.6.30.0070.07020.47
5.6.20.0130.07020.45
5.6.10.0130.07320.43
5.6.00.0000.07320.40
5.5.380.0130.07720.39
5.5.370.0100.04720.39
5.5.360.0070.08320.55
5.5.350.0070.08020.45
5.5.340.0130.07020.82
5.5.330.0070.05320.93
5.5.320.0070.07020.79
5.5.310.0100.04720.79
5.5.300.0100.06720.91
5.5.290.0100.08320.82
5.5.280.0100.07720.76
5.5.270.0170.07320.90
5.5.260.0170.07320.83
5.5.250.0100.06320.66
5.5.240.0070.07720.29
5.5.230.0100.04720.16
5.5.220.0070.07720.12
5.5.210.0100.07020.18
5.5.200.0000.08720.13
5.5.190.0100.07320.10
5.5.180.0100.07720.29
5.5.160.0070.08020.16
5.5.150.0200.06320.19
5.5.140.0030.07320.12
5.5.130.0070.08320.16
5.5.120.0070.07720.23
5.5.110.0130.07720.21
5.5.100.0030.08020.08
5.5.90.0100.07020.05
5.5.80.0000.08020.12
5.5.70.0070.04720.10
5.5.60.0100.07319.95
5.5.50.0070.07720.11
5.5.40.0070.03720.11
5.5.30.0070.08320.09
5.5.20.0130.07320.11
5.5.10.0100.06720.08
5.5.00.0130.06020.05
5.4.450.0130.07719.38
5.4.440.0030.08019.23
5.4.430.0100.07719.20
5.4.420.0130.06319.23
5.4.410.0100.07319.08
5.4.400.0170.06719.05
5.4.390.0030.08019.14
5.4.380.0130.07019.14
5.4.370.0030.08319.13
5.4.360.0030.07719.23
5.4.350.0070.06719.21
5.4.340.0000.08319.21
5.4.320.0100.07319.04
5.4.310.0100.07019.13
5.4.300.0070.06319.05
5.4.290.0070.07319.06
5.4.280.0030.08019.13
5.4.270.0000.08319.09
5.4.260.0000.07319.14
5.4.250.0030.08019.13
5.4.240.0100.06719.05
5.4.230.0230.05719.13
5.4.220.0070.07318.89
5.4.210.0130.06719.12
5.4.200.0100.05319.02
5.4.190.0100.07019.20
5.4.180.0100.05318.89
5.4.170.0130.07719.17
5.4.160.0070.07718.93
5.4.150.0030.05719.12
5.4.140.0100.06316.43
5.4.130.0100.07016.46
5.4.120.0070.06016.24
5.4.110.0070.07716.46
5.4.100.0070.06716.42
5.4.90.0100.07016.52
5.4.80.0030.06316.43
5.4.70.0070.06016.45
5.4.60.0070.07316.34
5.4.50.0070.06016.37
5.4.40.0100.07016.54
5.4.30.0100.07016.36
5.4.20.0100.05316.46
5.4.10.0030.07316.44
5.4.00.0100.06715.85
5.3.290.0030.07714.79
5.3.280.0030.07314.73
5.3.270.0030.08014.73
5.3.260.0070.07014.55
5.3.250.0070.07314.66
5.3.240.0070.07714.66
5.3.230.0070.07314.70
5.3.220.0100.06714.64
5.3.210.0070.07714.63
5.3.200.0030.04714.67
5.3.190.0100.07314.61
5.3.180.0070.06714.55
5.3.170.0030.03714.60
5.3.160.0070.07714.62
5.3.150.0070.06014.68
5.3.140.0000.04014.62
5.3.130.0000.08014.61
5.3.120.0070.07314.48
5.3.110.0070.07714.62
5.3.100.0030.07714.07
5.3.90.0070.07314.00
5.3.80.0070.07314.01
5.3.70.0030.08014.05
5.3.60.0030.07314.00
5.3.50.0030.07313.85
5.3.40.0130.06314.07
5.3.30.0100.07013.98
5.3.20.0000.06013.80
5.3.10.0070.06713.73
5.3.00.0030.07713.75
5.2.170.0000.05711.63
5.2.160.0130.05011.63
5.2.150.0030.06311.63
5.2.140.0030.06311.63
5.2.130.0070.05311.63
5.2.120.0030.06711.63
5.2.110.0070.05311.63
5.2.100.0000.06711.63
5.2.90.0070.05011.63
5.2.80.0070.06311.63
5.2.70.0070.05711.63
5.2.60.0030.06311.63
5.2.50.0070.06011.63
5.2.40.0030.06011.63
5.2.30.0000.04011.63
5.2.20.0030.06011.63
5.2.10.0130.05311.63
5.2.00.0030.05711.63
5.1.60.0130.04711.63
5.1.50.0030.03311.63
5.1.40.0130.04011.63
5.1.30.0030.05711.63
5.1.20.0030.06011.63
5.1.10.0100.05311.63
5.1.00.0030.05011.63
5.0.50.0000.05011.63
5.0.40.0000.04311.63
5.0.30.0100.05711.63
5.0.20.0070.04311.63
5.0.10.0070.03311.63
5.0.00.0000.06011.63
4.4.90.0000.03711.63
4.4.80.0030.02011.63
4.4.70.0070.03311.63
4.4.60.0030.03311.63
4.4.50.0000.03711.63
4.4.40.0030.05711.63
4.4.30.0030.03311.63
4.4.20.0030.03311.63
4.4.10.0070.03311.63
4.4.00.0030.05011.63
4.3.110.0000.02311.63
4.3.100.0030.03311.63
4.3.90.0030.03311.63
4.3.80.0030.05011.63
4.3.70.0070.01711.63
4.3.60.0000.03011.63
4.3.50.0000.04711.63
4.3.40.0030.05011.63
4.3.30.0030.02711.63
4.3.20.0070.02011.63
4.3.10.0030.03311.63
4.3.00.0000.02011.63

preferences:
54.44 ms | 400 KiB | 5 Q