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; $firstName = 'Ivan'; $lastName = 'Ivanov'; $email = 'ivan@ivanov.ivn'; $phone = '12345678901'; $orderNumber = 77777; $orderAmount = 675.30; $signature = $sign->generate($orderNumber, $orderAmount); echo 'http://mirusoft.ru/include/payments/aq.php' .'?Signature='.$signature .'&Order_ID='.$orderNumber .'&Subtotal='.$orderAmount .'&FirstName='.$firstName .'&LastName='.$lastName .'&Email='.$email .'&Phone='.$phone;

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.0140.00416.63
8.3.50.0130.00921.89
8.3.40.0040.01118.50
8.3.30.0190.00319.06
8.3.20.0070.00020.30
8.3.10.0040.00423.69
8.3.00.0070.00020.94
8.2.180.0110.01116.38
8.2.170.0090.00622.96
8.2.160.0130.00620.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0150.00426.16
8.2.120.0040.00419.23
8.2.110.0060.00322.27
8.2.100.0090.00318.00
8.2.90.0000.00819.07
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0000.00819.95
8.2.30.0070.00018.31
8.2.20.0040.00417.68
8.2.10.0080.00018.18
8.2.00.0040.00417.66
8.1.280.0000.01425.92
8.1.270.0030.00622.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.78
8.1.230.0040.00719.05
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00717.35
8.1.190.0030.00617.35
8.1.180.0060.00618.10
8.1.170.0000.00818.55
8.1.160.0050.00222.09
8.1.150.0000.00818.68
8.1.140.0000.00917.55
8.1.130.0000.00717.88
8.1.120.0040.00417.41
8.1.110.0080.00017.50
8.1.100.0000.00717.49
8.1.90.0040.00417.46
8.1.80.0040.00417.54
8.1.70.0030.00317.51
8.1.60.0040.00417.68
8.1.50.0040.00417.49
8.1.40.0060.00317.58
8.1.30.0000.00817.60
8.1.20.0050.00217.63
8.1.10.0020.00517.59
8.1.00.0000.00917.56
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0000.00817.17
8.0.260.0030.00317.15
8.0.250.0040.00417.05
8.0.240.0000.00816.98
8.0.230.0000.00717.00
8.0.220.0080.00016.94
8.0.210.0030.00316.98
8.0.200.0030.00316.88
8.0.190.0030.00617.04
8.0.180.0080.00016.98
8.0.170.0040.00416.89
8.0.160.0040.00417.03
8.0.150.0040.00416.89
8.0.140.0040.00416.95
8.0.130.0030.00313.37
8.0.120.0050.00216.80
8.0.110.0070.00016.89
8.0.100.0000.00716.98
8.0.90.0040.00416.94
8.0.80.0170.00316.96
8.0.70.0000.00816.93
8.0.60.0040.00416.75
8.0.50.0040.00416.80
8.0.30.0090.00917.13
8.0.20.0200.00317.40
8.0.10.0040.00417.09
8.0.00.0050.01317.02
7.4.330.0000.00515.00
7.4.320.0000.00716.62
7.4.300.0060.00016.55
7.4.290.0050.00316.56
7.4.280.0000.00816.63
7.4.270.0000.00716.66
7.4.260.0040.00416.52
7.4.250.0040.00416.51
7.4.240.0020.00516.60
7.4.230.0060.00316.75
7.4.220.0070.01716.75
7.4.210.0070.00716.59
7.4.200.0040.00416.44
7.4.160.0100.00616.33
7.4.150.0040.01317.40
7.4.140.0130.00717.86
7.4.130.0050.01216.54
7.4.120.0070.01016.56
7.4.110.0080.00816.58
7.4.100.0070.01016.47
7.4.90.0030.01316.63
7.4.80.0070.01519.39
7.4.70.0100.00616.64
7.4.60.0090.01216.62
7.4.50.0040.00016.38
7.4.40.0120.00816.68
7.4.30.0080.00816.72
7.4.10.0040.01214.97
7.4.00.0040.01214.81
7.3.330.0000.00613.30
7.3.320.0000.00513.20
7.3.310.0070.00016.32
7.3.300.0030.00316.32
7.3.290.0110.00316.28
7.3.280.0070.01216.31
7.3.270.0110.00617.40
7.3.260.0070.01116.59
7.3.250.0090.00816.38
7.3.240.0160.00316.34
7.3.230.0140.00316.39
7.3.210.0130.00916.43
7.3.200.0090.00619.39
7.3.190.0070.01116.61
7.3.180.0000.01616.50
7.3.170.0090.00616.63
7.3.160.0120.00416.54
7.3.130.0090.01014.57
7.3.120.0060.01014.90
7.3.110.0080.01014.84
7.3.100.0070.00914.81
7.3.90.0090.00614.83
7.3.80.0040.00814.88
7.3.70.0050.01014.75
7.3.60.0070.00814.86
7.3.50.0030.01314.69
7.3.40.0070.00914.69
7.3.30.0070.00714.78
7.3.20.0050.00916.50
7.3.10.0060.00916.57
7.3.00.0100.00416.66
7.2.330.0120.01216.66
7.2.320.0070.01016.67
7.2.310.0080.00816.89
7.2.300.0070.01016.69
7.2.290.0180.00616.71
7.2.260.0080.01014.89
7.2.250.0050.01314.98
7.2.240.0060.00914.83
7.2.230.0080.00915.13
7.2.220.0090.00715.02
7.2.210.0050.01015.13
7.2.200.0050.00915.16
7.2.190.0060.00914.93
7.2.180.0080.00815.04
7.2.170.0020.01115.09
7.2.160.0070.00714.95
7.2.150.0050.01216.89
7.2.140.0050.01116.89
7.2.130.0060.00816.82
7.2.120.0040.01017.02
7.2.110.0060.00816.92
7.2.100.0070.00716.82
7.2.90.0060.00916.94
7.2.80.0070.00917.13
7.2.70.0070.00716.93
7.2.60.0060.00716.96
7.2.50.0060.00816.96
7.2.40.0030.01016.91
7.2.30.0060.00917.04
7.2.20.0060.00816.91
7.2.10.0050.01016.96
7.2.00.0060.00717.36
7.1.330.0040.01015.86
7.1.320.0030.01015.69
7.1.310.0060.00715.67
7.1.300.0060.00615.79
7.1.290.0040.00915.78
7.1.280.0060.00615.72
7.1.270.0030.00915.66
7.1.260.0030.01015.67
7.1.250.0050.00915.77
7.1.240.0060.00715.70
7.1.230.0060.00515.69
7.1.220.0050.00915.68
7.1.210.0050.00815.74
7.1.200.0050.00815.75
7.1.190.0030.00815.84
7.1.180.0060.00815.70
7.1.170.0080.00615.68
7.1.160.0060.00715.79
7.1.150.0040.01115.67
7.1.140.0050.01115.80
7.1.130.0050.00715.67
7.1.120.0050.00715.77
7.1.110.0030.00815.77
7.1.100.0070.00616.25
7.1.90.0030.00715.71
7.1.80.0040.00615.84
7.1.70.0040.00916.03
7.1.60.0080.00816.47
7.1.50.0030.01115.92
7.1.40.0070.00615.73
7.1.30.0050.00915.75
7.1.20.0070.00415.65
7.1.10.0050.01015.71
7.1.00.0050.02117.01
7.0.330.0040.00815.42
7.0.320.0070.00515.44
7.0.310.0060.00715.30
7.0.300.0030.00915.39
7.0.290.0040.00715.31
7.0.280.0060.00915.35
7.0.270.0070.00515.33
7.0.260.0040.00915.49
7.0.250.0050.00615.35
7.0.240.0070.00715.33
7.0.230.0060.00715.48
7.0.220.0030.00815.37
7.0.210.0050.00915.40
7.0.200.0050.00815.69
7.0.190.0040.00615.47
7.0.180.0050.00515.37
7.0.170.0060.00815.45
7.0.160.0060.00815.41
7.0.150.0080.00515.32
7.0.140.0020.02016.76
7.0.130.0070.00515.46
7.0.120.0090.00515.34
7.0.110.0080.00515.43
7.0.100.0080.02416.28
7.0.90.0080.02216.39
7.0.80.0100.02416.28
7.0.70.0120.02116.22
7.0.60.0100.02516.42
7.0.50.0110.01816.46
7.0.40.0050.01914.76
7.0.30.0060.02014.67
7.0.20.0060.02314.76
7.0.10.0100.01814.77
7.0.00.0080.02114.78
5.6.400.0040.00914.42
5.6.390.0030.01014.18
5.6.380.0030.01014.25
5.6.370.0020.01114.39
5.6.360.0050.00814.38
5.6.350.0070.00814.46
5.6.340.0050.00814.32
5.6.330.0030.00814.35
5.6.320.0050.01014.26
5.6.310.0030.01014.41
5.6.300.0030.00814.37
5.6.290.0060.00514.29
5.6.280.0060.00814.32
5.6.270.0030.01214.35
5.6.260.0060.00814.26
5.6.250.0070.02215.67
5.6.240.0050.02215.55
5.6.230.0030.02215.71
5.6.220.0100.01915.61
5.6.210.0020.02615.45
5.6.200.0100.02015.75
5.6.190.0050.01815.63
5.6.180.0090.01815.74
5.6.170.0080.01415.51
5.6.160.0060.01715.64
5.6.150.0060.01715.59
5.6.140.0050.02415.74
5.6.130.0070.02115.69
5.6.120.0030.01515.76
5.6.110.0060.01615.74
5.6.100.0070.01415.71
5.6.90.0060.01615.74
5.6.80.0060.01415.42
5.6.70.0070.02115.53
5.6.60.0040.02115.55
5.6.50.0050.02115.51
5.6.40.0020.01715.51
5.6.30.0070.01115.51
5.6.20.0030.01515.51
5.6.10.0050.01715.46
5.6.00.0070.01315.41
5.5.380.0040.02115.52
5.5.370.0060.02115.62
5.5.360.0070.01815.40
5.5.350.0070.02315.50
5.5.340.0080.01615.54
5.5.330.0060.02215.67
5.5.320.0060.01515.60
5.5.310.0050.02415.77
5.5.300.0070.01815.68
5.5.290.0060.02415.74
5.5.280.0040.01715.59
5.5.270.0040.01515.57
5.5.260.0090.01215.58
5.5.250.0040.01415.63
5.5.240.0060.01515.51
5.5.230.0060.01815.40
5.5.220.0040.01815.49
5.5.210.0030.02415.52
5.5.200.0070.01315.41
5.5.190.0060.01115.37
5.5.180.0060.01515.30
5.5.170.0040.01014.19
5.5.160.0040.01515.37
5.5.150.0060.01715.48
5.5.140.0070.02015.43
5.5.130.0050.01415.36
5.5.120.0070.01115.35
5.5.110.0040.01715.43
5.5.100.0060.01615.42
5.5.90.0060.01415.44
5.5.80.0090.01015.41
5.5.70.0050.01515.32
5.5.60.0050.01515.43
5.5.50.0050.01515.38
5.5.40.0040.01715.33
5.5.30.0070.01515.26
5.5.20.0070.01215.43
5.5.10.0060.01315.28
5.5.00.0040.01515.45
5.4.450.0070.01413.44
5.4.440.0040.01313.37
5.4.430.0050.01213.33
5.4.420.0070.01013.41
5.4.410.0030.01413.30
5.4.400.0040.01613.39
5.4.390.0030.01313.34
5.4.380.0040.01913.26
5.4.370.0040.01913.33
5.4.360.0040.01113.37
5.4.350.0040.01213.20
5.4.340.0030.01413.35
5.4.330.0040.00611.84
5.4.320.0040.01413.23
5.4.310.0040.01213.39
5.4.300.0040.01313.18
5.4.290.0040.01213.29
5.4.280.0050.01213.29
5.4.270.0040.01413.25
5.4.260.0030.01313.25
5.4.250.0050.01213.21
5.4.240.0030.01413.35
5.4.230.0040.01413.38
5.4.220.0050.01113.29
5.4.210.0050.01313.27
5.4.200.0030.01413.34
5.4.190.0030.01313.32
5.4.180.0040.01313.20
5.4.170.0070.00913.21
5.4.160.0010.01513.34
5.4.150.0040.01413.33
5.4.140.0030.01212.79
5.4.130.0050.01012.76
5.4.120.0030.01212.83
5.4.110.0020.01512.69
5.4.100.0060.00912.87
5.4.90.0030.01612.69
5.4.80.0060.01812.73
5.4.70.0060.01712.70
5.4.60.0060.01512.78
5.4.50.0030.01612.72
5.4.40.0060.01612.77
5.4.30.0080.01712.75
5.4.20.0030.02112.77
5.4.10.0060.01012.71
5.4.00.0040.01312.51
5.3.290.0030.01312.26
5.3.280.0030.01512.22
5.3.270.0010.01512.24
5.3.260.0060.01012.21
5.3.250.0030.01312.26
5.3.240.0020.01312.23
5.3.230.0030.01312.16
5.3.220.0030.01312.16
5.3.210.0060.00912.19
5.3.200.0040.01212.14
5.3.190.0030.01512.19
5.3.180.0040.01712.28
5.3.170.0050.02112.21
5.3.160.0030.02112.22
5.3.150.0050.01712.24
5.3.140.0060.01212.23
5.3.130.0060.01812.26
5.3.120.0040.01112.20
5.3.110.0030.01312.25
5.3.100.0050.01712.07
5.3.90.0060.01712.11
5.3.80.0050.01312.04
5.3.70.0050.02012.07
5.3.60.0060.01412.16
5.3.50.0050.02012.06
5.3.40.0050.01512.05
5.3.30.0040.02012.08
5.3.20.0070.01611.97
5.3.10.0020.01911.91
5.3.00.0020.01811.91
5.2.170.0070.05312.26
5.2.160.0070.05012.26
5.2.150.0070.05712.26
5.2.140.0000.06312.26
5.2.130.0030.06312.26
5.2.120.0070.06012.26
5.2.110.0070.05712.26
5.2.100.0070.06012.26
5.2.90.0100.03712.26
5.2.80.0130.05012.26
5.2.70.0000.06312.26
5.2.60.0000.05712.26
5.2.50.0000.03712.26
5.2.40.0030.06012.26
5.2.30.0030.03012.26
5.2.20.0030.03712.26
5.2.10.0030.03012.26
5.2.00.0070.05712.26
5.1.60.0000.02712.26
5.1.50.0100.04312.26
5.1.40.0030.03712.26
5.1.30.0000.05012.26
5.1.20.0070.05312.26
5.1.10.0100.05012.26
5.1.00.0100.05012.26
5.0.50.0030.04312.26
5.0.40.0100.03012.26
5.0.30.0070.05712.26
5.0.20.0030.04012.26
5.0.10.0000.02712.26
5.0.00.0070.05312.26
4.4.90.0030.03712.26
4.4.80.0070.03012.26
4.4.70.0030.03712.26
4.4.60.0100.02012.26
4.4.50.0030.01712.26
4.4.40.0100.04312.26
4.4.30.0070.02712.26
4.4.20.0030.02012.26
4.4.10.0030.03312.26
4.4.00.0000.03012.26
4.3.110.0030.02012.26
4.3.100.0100.02712.26
4.3.90.0030.03312.26
4.3.80.0030.05312.26
4.3.70.0000.03312.26
4.3.60.0070.01312.26
4.3.50.0000.02712.26
4.3.40.0030.02712.26
4.3.30.0000.02712.26
4.3.20.0000.01712.26
4.3.10.0030.02312.26
4.3.00.0030.02312.26

preferences:
45.94 ms | 401 KiB | 5 Q