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 = 333; $orderAmount = 300; $signature = $sign->generate($orderNumber, $orderAmount); echo 'http://mirusoft.ru/include/payments/get_url.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.0070.00718.56
8.3.50.0050.01321.97
8.3.40.0070.01418.71
8.3.30.0070.00720.29
8.3.20.0050.00320.30
8.3.10.0040.00422.09
8.3.00.0000.00822.30
8.2.180.0150.00616.50
8.2.170.0110.00422.96
8.2.160.0030.01022.21
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.73
8.2.110.0090.00020.88
8.2.100.0000.01117.72
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0090.00318.10
8.2.40.0030.00619.95
8.2.30.0040.00419.35
8.2.20.0000.00817.75
8.2.10.0040.00417.73
8.2.00.0040.00417.89
8.1.280.0140.00325.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.68
8.1.230.0090.00317.76
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0050.00517.13
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0030.00518.55
8.1.160.0000.01118.87
8.1.150.0050.00318.68
8.1.140.0080.00017.37
8.1.130.0050.00317.87
8.1.120.0000.00717.48
8.1.110.0070.00017.39
8.1.100.0040.00417.45
8.1.90.0000.00817.48
8.1.80.0000.00717.46
8.1.70.0000.00717.47
8.1.60.0000.00817.50
8.1.50.0000.00717.54
8.1.40.0040.00417.57
8.1.30.0080.00017.74
8.1.20.0030.00617.65
8.1.10.0000.00917.58
8.1.00.0000.00817.57
8.0.300.0030.00618.77
8.0.290.0080.00016.88
8.0.280.0070.00018.44
8.0.270.0000.00717.22
8.0.260.0030.00316.87
8.0.250.0030.00317.04
8.0.240.0050.00617.06
8.0.230.0030.00316.99
8.0.220.0030.00316.91
8.0.210.0000.00716.93
8.0.200.0040.00416.96
8.0.190.0000.00717.03
8.0.180.0080.00016.89
8.0.170.0050.00316.88
8.0.160.0030.00316.81
8.0.150.0070.00016.96
8.0.140.0070.00016.76
8.0.130.0030.00313.30
8.0.120.0040.00416.92
8.0.110.0040.00416.89
8.0.100.0080.00016.93
8.0.90.0000.00717.00
8.0.80.0080.00816.92
8.0.70.0000.00716.96
8.0.60.0040.00416.81
8.0.50.0000.00816.90
8.0.30.0060.01217.22
8.0.20.0120.00717.40
8.0.10.0000.00716.96
8.0.00.0050.01416.82
7.4.330.0040.00015.07
7.4.320.0000.00716.65
7.4.300.0060.00016.65
7.4.290.0070.00016.48
7.4.280.0030.00516.53
7.4.270.0000.00716.50
7.4.260.0040.00413.30
7.4.250.0040.00416.65
7.4.240.0020.00516.56
7.4.230.0050.00216.35
7.4.220.0140.00416.49
7.4.210.0060.00916.55
7.4.200.0040.00416.63
7.4.190.0000.00816.46
7.4.160.0060.01016.43
7.4.150.0030.01317.40
7.4.140.0170.00317.86
7.4.130.0120.00516.58
7.4.120.0110.00816.54
7.4.110.0130.00416.66
7.4.100.0100.00716.64
7.4.90.0000.01716.45
7.4.80.0060.01119.39
7.4.70.0130.00416.44
7.4.60.0140.00316.61
7.4.50.0050.00316.64
7.4.40.0030.01322.77
7.4.30.0080.00816.43
7.4.00.0060.00915.18
7.3.330.0000.00513.12
7.3.320.0000.00613.20
7.3.310.0000.00716.19
7.3.300.0020.00516.33
7.3.290.0140.00016.27
7.3.280.0140.00316.34
7.3.270.0060.01217.40
7.3.260.0110.00816.73
7.3.250.0110.00816.36
7.3.240.0030.01416.30
7.3.230.0100.01316.45
7.3.210.0070.01016.59
7.3.200.0090.00919.39
7.3.190.0140.01016.38
7.3.180.0060.00916.39
7.3.170.0080.00816.28
7.3.160.0150.00316.59
7.3.120.0030.01315.09
7.3.110.0080.00814.93
7.3.100.0070.00714.55
7.3.90.0000.01615.15
7.3.80.0040.00715.13
7.3.70.0100.00614.88
7.3.60.0100.00014.73
7.3.50.0080.00614.86
7.3.40.0000.01614.92
7.3.30.0070.01014.85
7.3.20.0120.00016.71
7.3.10.0060.00916.85
7.3.00.0070.01016.83
7.2.330.0000.01716.78
7.2.320.0130.01016.44
7.2.310.0160.00716.78
7.2.300.0110.00616.67
7.2.290.0060.01216.93
7.2.240.0100.00714.98
7.2.230.0110.00315.07
7.2.220.0070.01014.86
7.2.210.0080.00815.38
7.2.200.0040.01115.02
7.2.190.0090.00614.83
7.2.180.0100.00315.01
7.2.170.0070.01015.18
7.2.160.0100.00314.98
7.2.150.0150.00416.69
7.2.140.0090.00316.88
7.2.130.0070.00916.83
7.2.120.0050.00916.85
7.2.110.0060.00416.84
7.2.100.0060.01017.04
7.2.90.0090.00516.96
7.2.80.0060.00916.94
7.2.70.0020.01216.91
7.2.60.0040.01217.00
7.2.50.0060.00817.07
7.2.40.0050.00817.10
7.2.30.0060.01116.94
7.2.20.0070.00916.82
7.2.10.0070.00716.98
7.2.00.0040.01017.73
7.1.330.0000.01215.66
7.1.320.0040.00815.75
7.1.310.0000.01715.71
7.1.300.0030.01115.80
7.1.290.0000.01515.82
7.1.280.0150.00015.47
7.1.270.0030.01015.74
7.1.260.0060.00615.88
7.1.250.0110.00315.63
7.1.240.0040.00415.55
7.1.230.0080.00415.86
7.1.220.0050.00515.84
7.1.210.0040.01115.82
7.1.200.0090.00015.57
7.1.190.0000.00915.64
7.1.180.0060.00315.66
7.1.170.0070.00315.91
7.1.160.0040.01115.54
7.1.150.0040.00815.95
7.1.140.0030.01015.57
7.1.130.0030.01215.77
7.1.120.0070.00715.84
7.1.110.0030.01015.69
7.1.100.0050.00916.99
7.1.90.0000.01215.43
7.1.80.0040.00815.56
7.1.70.0030.00716.55
7.1.60.0080.00816.32
7.1.50.0140.00516.23
7.1.40.0060.00615.80
7.1.30.0000.01415.84
7.1.20.0040.01115.81
7.1.10.0000.01515.88
7.1.00.0050.03819.10
7.0.330.0030.01015.16
7.0.320.0070.00315.34
7.0.310.0110.00315.36
7.0.300.0030.01015.55
7.0.290.0070.00715.57
7.0.280.0000.00915.52
7.0.270.0090.00615.32
7.0.260.0030.00615.30
7.0.250.0050.00515.61
7.0.240.0040.00415.48
7.0.230.0000.01215.64
7.0.220.0040.00815.54
7.0.210.0030.00715.34
7.0.200.0080.00416.10
7.0.190.0100.00315.07
7.0.180.0030.00615.38
7.0.170.0070.00315.36
7.0.160.0100.00315.25
7.0.150.0150.00015.31
7.0.140.0090.03318.79
7.0.130.0030.00615.52
7.0.120.0030.00615.54
7.0.110.0000.00815.32
7.0.100.0070.00715.38
7.0.90.0090.00015.45
7.0.80.0030.00515.65
7.0.70.0040.04018.51
7.0.60.0030.04518.54
7.0.50.0070.04518.95
7.0.40.0050.02916.73
7.0.30.0090.04216.82
7.0.20.0070.04316.74
7.0.10.0090.04216.90
7.0.00.0070.02616.84
5.6.380.0000.00914.29
5.6.370.0000.01714.49
5.6.360.0070.00714.23
5.6.350.0070.01014.54
5.6.340.0090.00613.89
5.6.330.0040.00414.47
5.6.320.0040.01114.36
5.6.310.0070.00714.21
5.6.300.0100.00314.34
5.6.290.0000.01514.17
5.6.280.0060.03917.54
5.6.270.0040.01214.25
5.6.260.0000.01214.77
5.6.250.0100.00714.45
5.6.240.0030.01014.39
5.6.230.0120.00314.51
5.6.220.0060.04417.34
5.6.210.0050.04017.64
5.6.200.0010.04417.69
5.6.190.0060.04217.91
5.6.180.0030.04317.62
5.6.170.0020.04717.87
5.6.160.0070.04417.88
5.6.150.0050.03917.77
5.6.140.0030.04317.83
5.6.130.0020.05017.66
5.6.120.0050.04617.69
5.6.110.0070.04417.74
5.6.100.0030.04817.63
5.6.90.0010.04617.53
5.6.80.0070.03917.32
5.6.70.0030.04317.45
5.6.60.0050.03017.29
5.6.50.0020.04817.38
5.6.40.0010.04317.34
5.6.30.0060.04017.41
5.6.20.0040.03517.38
5.6.10.0080.04017.13
5.6.00.0070.04217.36
5.5.380.0040.00711.41
5.5.370.0080.00311.13
5.5.360.0060.04015.63
5.5.350.0010.04415.79
5.5.340.0090.03715.97
5.5.330.0030.03715.98
5.5.320.0050.03015.88
5.5.310.0080.04016.04
5.5.300.0060.03016.17
5.5.290.0040.02516.05
5.5.280.0030.04316.01
5.5.270.0070.04215.97
5.5.260.0070.03716.14
5.5.250.0090.03715.93
5.5.240.0070.03815.64
5.5.230.0020.04515.70
5.5.220.0070.03715.74
5.5.210.0050.04115.54
5.5.200.0030.04015.58
5.5.190.0080.03615.71
5.5.180.0020.04215.57
5.5.170.0060.00610.86
5.5.160.0040.03815.73
5.5.150.0060.03815.54
5.5.140.0020.04515.61
5.5.130.0050.03815.70
5.5.120.0000.04615.62
5.5.110.0030.03815.38
5.5.100.0000.04315.73
5.5.90.0050.04115.64
5.5.80.0020.03815.59
5.5.70.0090.03315.55
5.5.60.0050.03615.57
5.5.50.0050.04015.64
5.5.40.0000.04115.66
5.5.30.0020.04015.55
5.5.20.0080.03815.69
5.5.10.0030.04315.56
5.5.00.0000.04515.62
5.4.450.0050.04215.28
5.4.440.0020.04715.21
5.4.430.0070.03815.22
5.4.420.0060.03415.21
5.4.410.0050.04115.18
5.4.400.0050.04115.07
5.4.390.0020.04514.92
5.4.380.0060.03815.00
5.4.370.0050.04015.13
5.4.360.0070.04014.97
5.4.350.0020.03115.05
5.4.340.0080.03815.06
5.4.330.0060.00611.07
5.4.320.0000.04715.09
5.4.310.0050.03715.11
5.4.300.0000.04615.01
5.4.290.0000.04315.02
5.4.280.0040.03515.18
5.4.270.0050.03314.96
5.4.260.0020.04615.04
5.4.250.0010.03014.93
5.4.240.0030.04015.16
5.4.230.0030.04015.10
5.4.220.0050.03815.13
5.4.210.0050.04014.99
5.4.200.0040.03215.15
5.4.190.0020.04415.02
5.4.180.0030.03014.86
5.4.170.0050.04114.94
5.4.160.0030.04215.07
5.4.150.0080.03515.05
5.4.140.0070.02513.68
5.4.130.0050.04113.70
5.4.120.0050.03913.60
5.4.110.0030.03313.82
5.4.100.0050.03513.60
5.4.90.0030.03813.67
5.4.80.0050.03913.67
5.4.70.0050.03613.77
5.4.60.0030.03513.69
5.4.50.0070.03813.71
5.4.40.0020.03813.83
5.4.30.0020.03413.71
5.4.20.0040.03913.83
5.4.10.0080.04013.86
5.4.00.0060.03913.42
5.3.290.0050.04212.76
5.3.280.0040.03912.62
5.3.270.0060.03712.64
5.3.260.0030.03812.54
5.3.250.0000.03612.52
5.3.240.0110.03312.63
5.3.230.0030.03112.53
5.3.220.0050.03712.66
5.3.210.0020.03412.55
5.3.200.0020.04212.62
5.3.190.0060.03212.54
5.3.180.0050.04012.63
5.3.170.0050.03812.64
5.3.160.0080.03512.57
5.3.150.0030.03712.62
5.3.140.0020.04312.69
5.3.130.0030.03812.52
5.3.120.0020.03912.47
5.3.110.0050.03712.56
5.3.100.0020.04312.30
5.3.90.0100.03312.33
5.3.80.0030.04112.19
5.3.70.0060.03612.09
5.3.60.0020.04112.13
5.3.50.0020.03712.30
5.3.40.0030.04012.18
5.3.30.0050.03812.36
5.3.20.0020.04012.15
5.3.10.0040.03512.05
5.3.00.0050.03912.01
5.2.170.0050.03310.80
5.2.160.0020.03510.80
5.2.150.0040.02810.80
5.2.140.0000.03810.80
5.2.130.0030.03110.80
5.2.120.0000.03310.80
5.2.110.0080.02510.80
5.2.100.0020.03310.80
5.2.90.0060.02510.80
5.2.80.0030.03210.80
5.2.70.0030.03310.80
5.2.60.0030.02810.80
5.2.50.0030.02710.80
5.2.40.0020.02910.80
5.2.30.0020.03510.80
5.2.20.0030.02710.80
5.2.10.0040.03010.80
5.2.00.0040.02610.80
5.1.60.0000.02510.80
5.1.50.0030.03110.80
5.1.40.0020.02910.80
5.1.30.0040.01810.80
5.1.20.0000.02610.80
5.1.10.0000.02610.80
5.1.00.0020.02710.80
5.0.50.0000.02710.80
5.0.40.0020.02410.80
5.0.30.0010.03510.80
5.0.20.0020.02510.80
5.0.10.0060.02110.80
5.0.00.0000.03910.80
4.4.90.0000.01810.80
4.4.80.0000.01810.80
4.4.70.0030.01810.80
4.4.60.0030.01210.80
4.4.50.0060.01510.80
4.4.40.0020.02510.80
4.4.30.0030.01710.80
4.4.20.0000.01910.80
4.4.10.0000.02010.80
4.4.00.0020.02710.80
4.3.110.0020.01710.80
4.3.100.0030.01810.80
4.3.90.0000.02110.80
4.3.80.0050.02510.80
4.3.70.0020.01810.80
4.3.60.0000.01810.80
4.3.50.0020.01810.80
4.3.40.0000.03010.80
4.3.30.0030.01510.80
4.3.20.0020.01810.80
4.3.10.0020.02010.80
4.3.00.0020.01710.80

preferences:
54.23 ms | 401 KiB | 5 Q