3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getDigest( $password, $data ) { $firstEncoding = base64_encode(hash('sha512', $data, true)); $withPass = $firstStep . $password; return base64_encode(hash('sha512', $withPass, true)); } $password= 'PASSWORD'; $xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment><type>PAY_PAGE_AUTH_CAPTURE_INITIALISATION</type><mer chant><merchantid>10000001</merchantid><accountid>20000001</accountid></merchant>< customer><customerid>1</customerid><email>test@test.com</email><name>Test Client</name><dateofbirth>03042000</dateofbirth><address><addressline1>123 Street</addressline1><addressline2></addressline2><city>Guildford</city><province>Surrey</ province><postcode>GU2 2YG</postcode><country>GBR</country></address><mobilenumber>01234123123</mobilenu mber></customer><transaction><amount>1000</amount><currency>USD</currency><mercha ntref>3DIIWxxbGjhPR7g0OSk8</merchantref></transaction><url><responseurl>https://localho st:8443/response</responseurl></url></payment>'; $first = 'ClKm6nuJYhM29fpYYf1zv2mJ4WdS6DZ6RMwvg8BCiCvLA3Nv1HtKh1YK30F1ljNOVWGEcuc9Mmim2DIVI4s+2w=='; echo $first.PHP_EOL; $p = $first.$password; echo $p.PHP_EOL; $second = base64_encode(hash('sha512', $p, true)); echo $second.PHP_EOL;

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.01116.50
8.3.50.0120.00522.06
8.3.40.0040.01118.70
8.3.30.0110.00719.09
8.3.20.0040.00420.21
8.3.10.0040.00423.52
8.3.00.0000.00819.25
8.2.180.0100.00716.32
8.2.170.0140.00722.96
8.2.160.0000.01420.35
8.2.150.0040.00424.18
8.2.140.0140.00324.66
8.2.130.0020.00526.16
8.2.120.0040.00422.26
8.2.110.0100.00020.29
8.2.100.0080.00417.78
8.2.90.0040.00419.04
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0070.00317.90
8.2.50.0000.00818.07
8.2.40.0060.00319.76
8.2.30.0070.00018.11
8.2.20.0040.00417.75
8.2.10.0040.00418.11
8.2.00.0000.00717.80
8.1.280.0120.00925.92
8.1.270.0090.00023.87
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.95
8.1.230.0090.00317.52
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00016.99
8.1.190.0040.00416.99
8.1.180.0040.00418.10
8.1.170.0060.00318.40
8.1.160.0040.00422.01
8.1.150.0000.00718.63
8.1.140.0000.00717.39
8.1.130.0030.00317.74
8.1.120.0050.00217.44
8.1.110.0030.00517.43
8.1.100.0000.00717.31
8.1.90.0000.00717.40
8.1.80.0050.00317.25
8.1.70.0030.00317.30
8.1.60.0040.00417.53
8.1.50.0000.00817.48
8.1.40.0040.00417.51
8.1.30.0040.00417.49
8.1.20.0000.00817.57
8.1.10.0000.00817.41
8.1.00.0050.00217.38
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0070.00018.51
8.0.270.0090.00317.26
8.0.260.0000.00617.27
8.0.250.0000.00716.86
8.0.240.0000.00716.95
8.0.230.0040.00416.90
8.0.220.0040.00416.89
8.0.210.0040.00416.80
8.0.200.0040.00416.96
8.0.190.0080.00016.95
8.0.180.0040.00416.93
8.0.170.0040.00416.95
8.0.160.0040.00416.79
8.0.150.0000.00716.71
8.0.140.0030.00516.83
8.0.130.0000.00613.32
8.0.120.0040.00416.88
8.0.110.0070.00016.83
8.0.100.0040.00416.90
8.0.90.0040.00416.90
8.0.80.0000.01516.90
8.0.70.0040.00416.89
8.0.60.0070.00016.93
8.0.50.0000.00716.80
8.0.30.0100.00817.00
8.0.20.0130.00717.40
8.0.10.0000.00716.98
8.0.00.0120.01016.73
7.4.330.0050.00015.06
7.4.320.0030.00316.44
7.4.300.0040.00416.37
7.4.290.0040.00416.45
7.4.280.0050.00216.44
7.4.270.0000.00716.44
7.4.260.0030.00316.33
7.4.250.0040.00416.46
7.4.240.0030.00316.53
7.4.230.0000.00816.48
7.4.220.0230.00316.66
7.4.210.0040.01116.54
7.4.200.0000.00716.52
7.4.190.0000.00716.39
7.4.160.0080.00816.60
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0130.00516.40
7.4.120.0100.00616.36
7.4.110.0140.00416.20
7.4.100.0000.01716.54
7.4.90.0100.00716.36
7.4.80.0090.01319.39
7.4.70.0060.01216.43
7.4.60.0150.00416.40
7.4.50.0040.00416.31
7.4.40.0090.01216.40
7.4.30.0040.01316.52
7.4.00.0070.01014.82
7.3.330.0000.00613.09
7.3.320.0050.00013.07
7.3.310.0040.00416.14
7.3.300.0000.00716.23
7.3.290.0030.01016.23
7.3.280.0080.00916.20
7.3.270.0090.00917.40
7.3.260.0070.01016.17
7.3.250.0070.01216.33
7.3.240.0060.01716.28
7.3.230.0120.00316.39
7.3.210.0160.00616.48
7.3.200.0120.00619.39
7.3.190.0140.00316.52
7.3.180.0070.01016.28
7.3.170.0130.00616.51
7.3.160.0130.00316.53
7.3.120.0060.01014.79
7.3.110.0090.00914.93
7.3.100.0110.00014.84
7.3.90.0060.00614.87
7.3.80.0070.00715.03
7.3.70.0060.00614.43
7.3.60.0030.01214.46
7.3.50.0000.01514.81
7.3.40.0000.01314.69
7.3.30.0060.00914.21
7.3.20.0060.01316.50
7.3.10.0030.01316.67
7.3.00.0030.01216.46
7.2.330.0190.00316.77
7.2.320.0110.00816.73
7.2.310.0090.01016.76
7.2.300.0090.00916.39
7.2.290.0100.00716.27
7.2.250.0040.01415.21
7.2.240.0000.01815.08
7.2.230.0030.00715.18
7.2.220.0030.01014.93
7.2.210.0070.00714.72
7.2.200.0090.00314.71
7.2.190.0070.01114.93
7.2.180.0000.01414.94
7.2.170.0000.01715.00
7.2.130.0070.01016.64
7.2.120.0090.00616.85
7.2.110.0080.00416.84
7.2.100.0100.00316.94
7.2.90.0040.01116.93
7.2.80.0120.00917.04
7.2.70.0120.00316.95
7.2.60.0000.01216.88
7.2.50.0070.00416.96
7.2.40.0070.00416.83
7.2.30.0040.01116.91
7.2.20.0000.01216.55
7.2.10.0090.00616.89
7.2.00.0090.00617.07
7.1.330.0030.01415.72
7.1.320.0100.00615.36
7.1.310.0070.00715.85
7.1.300.0040.01115.55
7.1.290.0110.00415.79
7.1.280.0000.01715.67
7.1.270.0060.00915.86
7.1.260.0090.00915.75
7.1.250.0070.00715.63
7.1.240.0150.00315.71
7.1.230.0070.01015.82
7.1.220.0000.01115.57
7.1.210.0100.00715.67
7.1.200.0040.01115.72
7.1.190.0070.00715.58
7.1.180.0060.00615.44
7.1.170.0030.00615.50
7.1.160.0060.00315.65
7.1.150.0110.00415.71
7.1.140.0080.00415.84
7.1.130.0060.00915.38
7.1.120.0070.00715.68
7.1.110.0030.01015.47
7.1.100.0070.00715.67
7.1.90.0090.00615.56
7.1.80.0130.00315.70
7.1.70.0040.00616.45
7.1.60.0050.01317.58
7.1.50.0080.01425.11
7.1.40.0100.00315.89
7.1.30.0040.00415.65
7.1.20.0070.00715.70
7.1.10.0040.01115.57
7.1.00.0020.04419.10
7.0.330.0050.00515.29
7.0.320.0090.00615.17
7.0.310.0120.00615.21
7.0.300.0050.00915.02
7.0.290.0080.00815.10
7.0.280.0070.00315.09
7.0.270.0080.00015.16
7.0.260.0030.01014.92
7.0.250.0000.00915.16
7.0.240.0040.00715.41
7.0.230.0000.01015.29
7.0.220.0040.00815.33
7.0.210.0030.01015.30
7.0.200.0030.00716.18
7.0.190.0070.00715.18
7.0.180.0070.00315.37
7.0.170.0090.00315.09
7.0.160.0060.00614.89
7.0.150.0100.00015.13
7.0.140.0070.03918.81
7.0.130.0090.00615.32
7.0.120.0120.00315.39
7.0.110.0070.00715.34
7.0.100.0060.00915.36
7.0.90.0070.00415.01
7.0.80.0000.00915.14
7.0.70.0050.02818.62
7.0.60.0060.02318.53
7.0.50.0030.03718.77
7.0.40.0070.02516.69
7.0.30.0050.02516.65
7.0.20.0050.04016.74
7.0.10.0030.02316.52
7.0.00.0100.02016.73
5.6.380.0110.00414.34
5.6.370.0080.00314.04
5.6.360.0040.00714.26
5.6.350.0060.00914.38
5.6.340.0070.00314.13
5.6.330.0040.00714.09
5.6.320.0060.00613.96
5.6.310.0030.01014.10
5.6.300.0040.00814.56
5.6.290.0040.00814.09
5.6.280.0040.03917.71
5.6.270.0030.00714.24
5.6.260.0000.00814.41
5.6.250.0030.01214.16
5.6.240.0030.00914.06
5.6.230.0090.00614.27
5.6.220.0060.03117.30
5.6.210.0030.03017.15
5.6.200.0030.02817.59
5.6.190.0030.02417.64
5.6.180.0050.03417.72
5.6.170.0070.02517.49
5.6.160.0080.02117.49
5.6.150.0050.04517.73
5.6.140.0040.02617.40
5.6.130.0100.02517.65
5.6.120.0080.04317.39
5.6.110.0070.03417.50
5.6.100.0050.02517.51
5.6.90.0030.03317.48
5.6.80.0060.02317.15
5.6.70.0080.03817.19
5.6.60.0070.03817.31
5.6.50.0020.02617.28
5.6.40.0060.02217.10
5.6.30.0070.03217.28
5.6.20.0060.04017.29
5.6.10.0080.02217.16
5.6.00.0030.03317.22
5.5.380.0060.00310.93
5.5.370.0030.00911.23
5.5.360.0050.02215.68
5.5.350.0050.02015.64
5.5.340.0000.02615.77
5.5.330.0030.02115.83
5.5.320.0020.02815.99
5.5.310.0060.02215.93
5.5.300.0020.02515.93
5.5.290.0070.02215.99
5.5.280.0020.02415.94
5.5.270.0030.02315.82
5.5.260.0030.02215.89
5.5.250.0050.02215.76
5.5.240.0030.04315.67
5.5.230.0030.03715.54
5.5.220.0080.04015.59
5.5.210.0050.02815.66
5.5.200.0090.04115.54
5.5.190.0020.02715.50
5.5.180.0050.04515.51
5.5.170.0040.00811.05
5.5.160.0050.04515.67
5.5.150.0030.04015.52
5.5.140.0030.03815.73
5.5.130.0060.04015.56
5.5.120.0050.04015.70
5.5.110.0020.04715.61
5.5.100.0040.03015.53
5.5.90.0020.04215.50
5.5.80.0020.04515.55
5.5.70.0040.04115.50
5.5.60.0070.04015.61
5.5.50.0020.02715.47
5.5.40.0050.04015.44
5.5.30.0090.03915.55
5.5.20.0030.04315.48
5.5.10.0010.03915.43
5.5.00.0030.03115.52
5.4.450.0000.02715.05
5.4.440.0050.02215.17
5.4.430.0000.03715.10
5.4.420.0020.03515.08
5.4.410.0030.02315.16
5.4.400.0050.02715.05
5.4.390.0020.04415.15
5.4.380.0090.03915.01
5.4.370.0030.02515.06
5.4.360.0030.02515.08
5.4.350.0030.02115.13
5.4.340.0030.04515.00
5.4.330.0040.00710.90
5.4.320.0050.04114.99
5.4.310.0050.04014.97
5.4.300.0070.03814.99
5.4.290.0050.03915.12
5.4.280.0050.04514.96
5.4.270.0050.04014.99
5.4.260.0040.03714.90
5.4.250.0040.03114.93
5.4.240.0070.04015.02
5.4.230.0030.04014.97
5.4.220.0030.04214.92
5.4.210.0080.02315.18
5.4.200.0080.03815.08
5.4.190.0040.03915.02
5.4.180.0060.03115.09
5.4.170.0050.02614.88
5.4.160.0060.02815.07
5.4.150.0040.04414.96
5.4.140.0030.03513.66
5.4.130.0050.03713.68
5.4.120.0030.03513.76
5.4.110.0020.02913.64
5.4.100.0000.03313.80
5.4.90.0070.03513.70
5.4.80.0060.03613.71
5.4.70.0070.03713.73
5.4.60.0050.03513.77
5.4.50.0030.03313.74
5.4.40.0010.04113.64
5.4.30.0040.03713.68
5.4.20.0030.02313.74
5.4.10.0020.04313.69
5.4.00.0030.02413.37
5.3.290.0040.04112.77
5.3.280.0030.04012.73
5.3.270.0030.03712.82
5.3.260.0060.02212.72
5.3.250.0050.03512.78
5.3.240.0000.03012.74
5.3.230.0040.03312.76
5.3.220.0060.03612.76
5.3.210.0000.04312.79
5.3.200.0050.03012.71
5.3.190.0050.03712.76
5.3.180.0030.03512.70
5.3.170.0030.04112.76
5.3.160.0040.03712.70
5.3.150.0020.03912.76
5.3.140.0020.04212.71
5.3.130.0020.03412.75
5.3.120.0070.03812.78
5.3.110.0020.04112.77
5.3.100.0000.03512.43
5.3.90.0040.04212.50
5.3.80.0050.04012.47
5.3.70.0000.04012.40
5.3.60.0030.04012.47
5.3.50.0080.03612.48
5.3.40.0000.04012.41
5.3.30.0030.03712.46
5.3.20.0020.03112.26
5.3.10.0050.03312.26
5.3.00.0030.04012.23
5.2.170.0030.03311.54
5.2.160.0040.03311.54
5.2.150.0030.03411.54
5.2.140.0020.03511.54
5.2.130.0070.02511.54
5.2.120.0000.03811.54
5.2.110.0030.03311.54
5.2.100.0000.03611.54
5.2.90.0030.03311.54
5.2.80.0020.03511.54
5.2.70.0030.03311.54
5.2.60.0000.03211.54
5.2.50.0070.03011.54
5.2.40.0070.02711.54
5.2.30.0060.02811.54
5.2.20.0000.03311.54
5.2.10.0020.03211.54
5.2.00.0080.02511.54
5.1.60.0000.03211.54
5.1.50.0010.03011.54
5.1.40.0060.02311.54
5.1.30.0010.03111.54
5.1.20.0020.02311.54
5.1.10.0000.02711.54
5.1.00.0020.02311.54
5.0.50.0020.02311.54
5.0.40.0030.02311.54
5.0.30.0040.03311.54
5.0.20.0000.01411.54
5.0.10.0010.02311.54
5.0.00.0020.03211.54
4.4.90.0020.02011.54
4.4.80.0000.01811.54
4.4.70.0020.02011.54
4.4.60.0050.01211.54
4.4.50.0030.01711.54
4.4.40.0020.02111.54
4.4.30.0010.02011.54
4.4.20.0030.02011.54
4.4.10.0030.01711.54
4.4.00.0020.03011.54
4.3.110.0000.01711.54
4.3.100.0030.00711.54
4.3.90.0000.02111.54
4.3.80.0040.02311.54
4.3.70.0020.01811.54
4.3.60.0000.02111.54
4.3.50.0030.01811.54
4.3.40.0000.03011.54
4.3.30.0020.02211.54
4.3.20.0050.01411.54
4.3.10.0000.02011.54
4.3.00.0020.02011.54

preferences:
43.02 ms | 401 KiB | 5 Q