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 = 334; $orderAmount = 325.44; $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.0000.01518.56
8.3.50.0070.01021.92
8.3.40.0140.00718.84
8.3.30.0110.00320.29
8.3.20.0030.00520.15
8.3.10.0040.00422.14
8.3.00.0000.00822.52
8.2.180.0140.00016.50
8.2.170.0070.00722.96
8.2.160.0100.00322.18
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00820.87
8.2.110.0040.00422.09
8.2.100.0060.00617.91
8.2.90.0080.00019.28
8.2.80.0040.00419.21
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0000.00919.88
8.2.30.0000.00919.48
8.2.20.0000.00717.60
8.2.10.0000.00817.85
8.2.00.0050.00317.72
8.1.280.0090.00625.92
8.1.270.0030.00523.99
8.1.260.0110.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.91
8.1.230.0100.00319.18
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0030.00617.36
8.1.190.0040.00417.53
8.1.180.0080.00018.93
8.1.170.0040.00418.59
8.1.160.0060.00318.80
8.1.150.0000.00818.73
8.1.140.0030.00617.50
8.1.130.0030.00317.74
8.1.120.0000.00717.52
8.1.110.0020.00517.51
8.1.100.0040.00417.47
8.1.90.0000.00817.56
8.1.80.0080.00017.50
8.1.70.0030.00317.40
8.1.60.0050.00317.52
8.1.50.0040.00417.59
8.1.40.0060.00317.55
8.1.30.0050.00317.56
8.1.20.0080.00017.61
8.1.10.0000.00717.52
8.1.00.0000.00817.46
8.0.300.0070.00018.77
8.0.290.0020.00617.04
8.0.280.0000.00818.53
8.0.270.0000.00817.31
8.0.260.0070.00016.88
8.0.250.0030.00317.00
8.0.240.0100.00016.88
8.0.230.0000.00717.05
8.0.220.0000.00716.91
8.0.210.0000.00816.91
8.0.200.0070.00016.99
8.0.190.0000.00716.88
8.0.180.0000.00716.87
8.0.170.0000.00816.89
8.0.160.0040.00316.90
8.0.150.0030.00316.84
8.0.140.0000.00816.93
8.0.130.0000.00613.23
8.0.120.0000.00816.89
8.0.110.0040.00416.97
8.0.100.0040.00416.91
8.0.90.0070.00016.95
8.0.80.0110.00416.96
8.0.70.0040.00417.05
8.0.60.0030.00516.82
8.0.50.0040.00416.82
8.0.30.0110.00717.06
8.0.20.0120.00617.40
8.0.10.0000.00716.97
8.0.00.0100.01316.60
7.4.330.0020.00216.89
7.4.320.0000.00716.53
7.4.300.0030.00316.50
7.4.290.0000.00716.66
7.4.280.0050.00216.55
7.4.270.0050.00316.61
7.4.260.0060.00013.32
7.4.250.0070.00016.52
7.4.240.0020.00516.47
7.4.230.0040.00416.64
7.4.220.0090.00916.41
7.4.210.0050.01016.64
7.4.200.0070.00016.74
7.4.190.0000.00716.44
7.4.160.0140.00716.48
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0060.01316.63
7.4.120.0090.00816.57
7.4.110.0040.01416.63
7.4.100.0070.01016.61
7.4.90.0100.00716.61
7.4.80.0110.00819.39
7.4.70.0090.01116.32
7.4.60.0100.00916.52
7.4.50.0000.00816.54
7.4.40.0030.01322.77
7.4.30.0160.00516.70
7.4.10.0080.01014.95
7.4.00.0080.01015.07
7.3.330.0000.00613.33
7.3.320.0030.00313.34
7.3.310.0000.00716.36
7.3.300.0020.00416.20
7.3.290.0070.00716.25
7.3.280.0070.00916.35
7.3.270.0140.00317.40
7.3.260.0120.00716.50
7.3.250.0120.00516.37
7.3.240.0120.00816.39
7.3.230.0090.01316.63
7.3.210.0140.00316.31
7.3.200.0100.00719.39
7.3.190.0140.00716.47
7.3.180.0030.01216.35
7.3.170.0060.01216.36
7.3.160.0080.00816.55
7.3.130.0030.01414.94
7.3.120.0080.01014.75
7.3.110.0050.01314.94
7.3.100.0070.00714.85
7.3.90.0090.00514.87
7.3.80.0060.00714.91
7.3.70.0050.01014.82
7.3.60.0070.00614.86
7.3.50.0060.00514.90
7.3.40.0060.00614.65
7.3.30.0050.00614.81
7.3.20.0100.00516.59
7.3.10.0040.01016.64
7.3.00.0050.00716.62
7.2.330.0150.00316.45
7.2.320.0100.00716.73
7.2.310.0000.01816.53
7.2.300.0000.01716.70
7.2.290.0030.01616.72
7.2.260.0060.00915.14
7.2.250.0080.01115.08
7.2.240.0070.00915.03
7.2.230.0060.01015.15
7.2.220.0070.00915.16
7.2.210.0090.00515.14
7.2.200.0010.01215.18
7.2.190.0080.00715.02
7.2.180.0080.00715.13
7.2.170.0050.00915.17
7.2.160.0070.00615.04
7.2.150.0060.00917.11
7.2.140.0110.00516.89
7.2.130.0080.00817.05
7.2.120.0080.00317.08
7.2.110.0060.00817.04
7.2.100.0080.00317.04
7.2.90.0090.00717.03
7.2.80.0050.00816.87
7.2.70.0030.00616.88
7.2.60.0060.00717.04
7.2.50.0080.00717.11
7.2.40.0070.00517.00
7.2.30.0070.01017.15
7.2.20.0050.00616.97
7.2.10.0080.00516.85
7.2.00.0010.01117.67
7.1.330.0070.00715.74
7.1.320.0050.00815.73
7.1.310.0040.00815.72
7.1.300.0080.00515.68
7.1.290.0060.00615.73
7.1.280.0030.01015.57
7.1.270.0020.00815.70
7.1.260.0020.01015.72
7.1.250.0050.00815.66
7.1.240.0070.00715.64
7.1.230.0070.00315.90
7.1.220.0090.00515.56
7.1.210.0080.00415.54
7.1.200.0050.00515.83
7.1.190.0020.00715.68
7.1.180.0070.00615.92
7.1.170.0050.00915.88
7.1.160.0030.00915.66
7.1.150.0090.00515.71
7.1.140.0010.00915.73
7.1.130.0080.00515.93
7.1.120.0030.00915.79
7.1.110.0060.00815.82
7.1.100.0050.01016.52
7.1.90.0080.00615.72
7.1.80.0050.01015.69
7.1.70.0040.00516.23
7.1.60.0070.00716.23
7.1.50.0050.01316.03
7.1.40.0040.00515.79
7.1.30.0050.00515.54
7.1.20.0090.00515.55
7.1.10.0050.01015.79
7.1.00.0040.02418.05
7.0.330.0060.00415.34
7.0.320.0070.00815.35
7.0.310.0070.00815.16
7.0.300.0080.00615.24
7.0.290.0040.00615.47
7.0.280.0070.00815.22
7.0.270.0020.01015.34
7.0.260.0060.00815.43
7.0.250.0050.01215.44
7.0.240.0060.00715.43
7.0.230.0030.00615.52
7.0.220.0050.00815.47
7.0.210.0010.00915.13
7.0.200.0050.00815.79
7.0.190.0070.00915.41
7.0.180.0020.00815.54
7.0.170.0060.00515.34
7.0.160.0050.01015.31
7.0.150.0070.00815.48
7.0.140.0070.02717.68
7.0.130.0070.00715.54
7.0.120.0090.00415.54
7.0.110.0070.00715.45
7.0.100.0100.01516.92
7.0.90.0030.03516.99
7.0.80.0070.02216.91
7.0.70.0010.03416.93
7.0.60.0100.03116.87
7.0.50.0050.03217.11
7.0.40.0090.01915.65
7.0.30.0070.02115.61
7.0.20.0090.02415.68
7.0.10.0040.03115.64
7.0.00.0050.02815.74
5.6.400.0070.00514.16
5.6.390.0100.00314.37
5.6.380.0030.01214.39
5.6.370.0060.00814.49
5.6.360.0080.00414.54
5.6.350.0080.00614.51
5.6.340.0050.00914.46
5.6.330.0040.00614.47
5.6.320.0060.00814.28
5.6.310.0040.00814.13
5.6.300.0040.00814.48
5.6.290.0050.00914.50
5.6.280.0050.02716.49
5.6.270.0000.01414.49
5.6.260.0100.00514.43
5.6.250.0120.01216.51
5.6.240.0070.03116.41
5.6.230.0060.03516.47
5.6.220.0090.03016.42
5.6.210.0040.03116.38
5.6.200.0040.02716.55
5.6.190.0100.02916.61
5.6.180.0070.03516.70
5.6.170.0090.02616.63
5.6.160.0040.03416.48
5.6.150.0080.02816.48
5.6.140.0080.03316.61
5.6.130.0050.02216.45
5.6.120.0080.03116.69
5.6.110.0090.03116.53
5.6.100.0030.03516.66
5.6.90.0090.02916.76
5.6.80.0060.02316.21
5.6.70.0060.02416.27
5.6.60.0070.03416.43
5.6.50.0050.01716.28
5.6.40.0020.02216.27
5.6.30.0060.01816.22
5.6.20.0070.01516.31
5.6.10.0050.01916.32
5.6.00.0050.01916.25
5.5.380.0050.02916.37
5.5.370.0150.02416.36
5.5.360.0100.02916.20
5.5.350.0070.01916.35
5.5.340.0080.03116.53
5.5.330.0120.02516.43
5.5.320.0050.03616.53
5.5.310.0100.03116.52
5.5.300.0040.02116.44
5.5.290.0040.03216.40
5.5.280.0050.03216.36
5.5.270.0010.02916.39
5.5.260.0080.03016.67
5.5.250.0100.01816.36
5.5.240.0060.02916.24
5.5.230.0050.03116.23
5.5.220.0060.03416.23
5.5.210.0000.02216.24
5.5.200.0040.01716.23
5.5.190.0060.01716.30
5.5.180.0070.02016.24
5.5.170.0010.01214.25
5.5.160.0060.01916.31
5.5.150.0050.01816.36
5.5.140.0040.03216.14
5.5.130.0090.02216.15
5.5.120.0070.02516.13
5.5.110.0050.02116.20
5.5.100.0070.01716.22
5.5.90.0050.02316.15
5.5.80.0020.03116.04
5.5.70.0070.01916.15
5.5.60.0030.01916.26
5.5.50.0060.01816.09
5.5.40.0050.02116.21
5.5.30.0020.02116.35
5.5.20.0040.02016.21
5.5.10.0020.02316.26
5.5.00.0080.01816.23
5.4.450.0040.03014.19
5.4.440.0070.01714.26
5.4.430.0040.03114.17
5.4.420.0070.03014.20
5.4.410.0050.03214.16
5.4.400.0030.03013.90
5.4.390.0060.03114.13
5.4.380.0060.02314.14
5.4.370.0030.02014.07
5.4.360.0010.02114.04
5.4.350.0070.01514.20
5.4.340.0020.02114.19
5.4.330.0070.00511.61
5.4.320.0030.01814.11
5.4.310.0030.01914.11
5.4.300.0020.02814.11
5.4.290.0040.02114.07
5.4.280.0080.01714.10
5.4.270.0070.01614.15
5.4.260.0070.02314.17
5.4.250.0070.01514.08
5.4.240.0030.02114.06
5.4.230.0030.02214.16
5.4.220.0050.01814.23
5.4.210.0030.01913.96
5.4.200.0060.01614.06
5.4.190.0030.01714.01
5.4.180.0020.01714.18
5.4.170.0040.02014.13
5.4.160.0020.01813.97
5.4.150.0070.01614.15
5.4.140.0090.01213.23
5.4.130.0060.02213.27
5.4.120.0040.01513.27
5.4.110.0040.01513.13
5.4.100.0030.01813.24
5.4.90.0070.01113.21
5.4.80.0060.01513.25
5.4.70.0040.01613.21
5.4.60.0060.01713.25
5.4.50.0000.01813.29
5.4.40.0030.01813.30
5.4.30.0070.01313.23
5.4.20.0030.01413.34
5.4.10.0040.01713.27
5.4.00.0030.01713.15
5.3.290.0030.01412.63
5.3.280.0040.01612.49
5.3.270.0050.01612.46
5.3.260.0060.01612.59
5.3.250.0030.02012.58
5.3.240.0010.01812.48
5.3.230.0030.02212.57
5.3.220.0060.01612.45
5.3.210.0050.01912.44
5.3.200.0040.01712.39
5.3.190.0080.01412.54
5.3.180.0020.01712.57
5.3.170.0070.02412.49
5.3.160.0010.01512.50
5.3.150.0020.02512.55
5.3.140.0060.01312.52
5.3.130.0050.01312.55
5.3.120.0080.01812.50
5.3.110.0030.01712.54
5.3.100.0020.02612.31
5.3.90.0030.01912.34
5.3.80.0030.01812.30
5.3.70.0030.01912.30
5.3.60.0030.02012.33
5.3.50.0080.01712.31
5.3.40.0050.02112.30
5.3.30.0060.02612.28
5.3.20.0060.01412.21
5.3.10.0020.02712.10
5.3.00.0030.02512.13
5.2.170.0000.03012.61
5.2.160.0000.05012.61
5.2.150.0000.05012.61
5.2.140.0030.05712.61
5.2.130.0030.06012.61
5.2.120.0030.03712.61
5.2.110.0030.04712.61
5.2.100.0000.06712.61
5.2.90.0070.03312.61
5.2.80.0000.06312.61
5.2.70.0070.04712.61
5.2.60.0070.06312.61
5.2.50.0100.05012.61
5.2.40.0030.06312.61
5.2.30.0000.06012.61
5.2.20.0030.06312.61
5.2.10.0130.04712.61
5.2.00.0070.06312.61
5.1.60.0030.04012.61
5.1.50.0000.05712.61
5.1.40.0030.05712.61
5.1.30.0000.06012.61
5.1.20.0100.04312.61
5.1.10.0070.05012.61
5.1.00.0030.05312.61
5.0.50.0030.05012.61
5.0.40.0070.04312.61
5.0.30.0070.05312.61
5.0.20.0000.04712.61
5.0.10.0030.04012.61
5.0.00.0030.06012.61
4.4.90.0000.03712.61
4.4.80.0070.03312.61
4.4.70.0030.03312.61
4.4.60.0000.03312.61
4.4.50.0070.02712.61
4.4.40.0070.05012.61
4.4.30.0070.03012.61
4.4.20.0000.04012.61
4.4.10.0000.02012.61
4.4.00.0030.03712.61
4.3.110.0000.02012.61
4.3.100.0000.03312.61
4.3.90.0030.03012.61
4.3.80.0100.04012.61
4.3.70.0070.03012.61
4.3.60.0070.02712.61
4.3.50.0000.02312.61
4.3.40.0030.04712.61
4.3.30.0000.02712.61
4.3.20.0070.01712.61
4.3.10.0000.03712.61
4.3.00.0000.03712.61

preferences:
58.88 ms | 401 KiB | 5 Q