3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = "{SSHA}j/r2/pEsrmd2fQUkcJ2wDkqhrK9hLmNvbDIxMDY="; $password = "&'(-_)=~#{[|`\^@]}"; $salt = substr(base64_decode(substr($hash,6)),20); echo $salt."\n"; $encrypted_password = '{SSHA}' . base64_encode(sha1( $password.$salt, TRUE ). $salt); echo $encrypted_password."\n"; vardump($encrypted_password == $hash);

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.40.0100.00718.84
8.3.30.0070.00718.83
8.3.20.0130.00320.16
8.3.10.0050.00323.66
8.3.00.0040.00423.34
8.2.170.0150.00622.96
8.2.160.0030.01020.35
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0060.00321.04
8.2.120.0000.00726.35
8.2.110.0130.01019.30
8.2.100.0110.00018.03
8.2.90.0050.00219.15
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00018.03
8.2.50.0060.00318.09
8.2.40.0080.00020.55
8.2.30.0090.00019.51
8.2.20.0000.00717.78
8.2.10.0000.00818.13
8.2.00.0080.00018.02
8.1.270.0130.00622.19
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0090.00019.28
8.1.230.0110.00017.77
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0040.00418.34
8.1.160.0000.00720.77
8.1.150.0040.00420.67
8.1.140.0080.00019.50
8.1.130.0070.00017.78
8.1.120.0000.00717.38
8.1.110.0070.00017.46
8.1.100.0090.00017.37
8.1.90.0000.00817.46
8.1.80.0040.00417.48
8.1.70.0000.00717.40
8.1.60.0040.00417.60
8.1.50.0000.00817.42
8.1.40.0040.00417.52
8.1.30.0040.00417.61
8.1.20.0050.00217.57
8.1.10.0000.00717.50
8.1.00.0050.00217.52
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0070.00018.48
8.0.270.0030.00317.27
8.0.260.0040.00417.17
8.0.250.0000.00717.04
8.0.240.0030.00517.06
8.0.230.0030.00317.05
8.0.220.0000.00717.05
8.0.210.0000.00716.81
8.0.200.0030.00316.89
8.0.190.0050.00317.00
8.0.180.0070.00016.84
8.0.170.0080.00017.04
8.0.160.0030.00317.04
8.0.150.0070.00016.82
8.0.140.0070.00016.93
8.0.130.0030.00313.42
8.0.120.0080.00016.84
8.0.110.0070.00017.03
8.0.100.0000.00716.84
8.0.90.0000.00716.88
8.0.80.0100.01016.94
8.0.70.0040.00416.93
8.0.60.0040.00416.84
8.0.50.0040.00416.84
8.0.30.0070.01217.08
8.0.20.0110.00717.40
8.0.10.0040.00416.96
8.0.00.0080.01016.77
7.4.330.0020.00216.84
7.4.320.0000.00716.50
7.4.300.0030.00316.60
7.4.290.0000.00716.57
7.4.280.0030.00516.63
7.4.270.0070.00016.50
7.4.260.0040.00416.55
7.4.250.0070.00016.56
7.4.240.0030.00316.53
7.4.230.0040.00416.70
7.4.220.0120.00616.61
7.4.210.0070.01216.62
7.4.200.0070.00016.40
7.4.160.0160.00616.61
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01316.50
7.4.120.0080.01016.74
7.4.110.0040.01316.52
7.4.100.0130.01016.48
7.4.90.0160.00316.43
7.4.80.0090.01019.39
7.4.70.0100.01316.43
7.4.60.0070.01516.43
7.4.50.0040.01416.62
7.4.40.0060.00916.31
7.4.30.0150.00316.63
7.4.00.0100.00615.20
7.3.330.0050.00013.03
7.3.320.0000.00613.20
7.3.310.0070.00016.46
7.3.300.0050.00316.30
7.3.290.0000.00716.36
7.3.280.0080.00716.33
7.3.270.0100.00717.40
7.3.260.0030.01316.24
7.3.240.0070.01216.43
7.3.230.0070.01016.51
7.3.210.0140.00316.45
7.3.200.0080.01619.39
7.3.190.0080.01216.44
7.3.180.0060.01316.60
7.3.170.0100.00716.39
7.3.160.0060.00916.54
7.3.120.0060.00614.80
7.3.110.0030.01415.11
7.3.100.0090.00615.09
7.3.90.0060.00614.95
7.3.80.0090.00914.87
7.3.70.0070.00714.77
7.3.60.0150.00014.89
7.3.50.0120.00614.90
7.3.40.0070.00314.83
7.3.30.0060.00814.68
7.3.20.0000.01016.32
7.3.10.0060.00616.68
7.3.00.0100.00316.78
7.2.330.0100.00716.43
7.2.320.0090.00916.70
7.2.310.0120.00616.38
7.2.300.0140.00316.67
7.2.290.0110.00816.83
7.2.240.0030.01014.65
7.2.230.0100.00615.25
7.2.220.0040.01115.21
7.2.210.0140.00015.10
7.2.200.0070.00714.75
7.2.190.0070.01014.96
7.2.180.0000.01415.05
7.2.170.0030.00915.13
7.2.160.0060.01214.91
7.2.150.0090.00616.88
7.2.140.0120.00016.79
7.2.130.0060.00617.00
7.2.120.0070.01116.71
7.2.110.0070.01016.66
7.2.100.0100.00616.87
7.2.90.0100.00716.77
7.2.80.0000.01316.85
7.2.70.0090.00616.66
7.2.60.0050.01016.98
7.2.50.0040.00816.84
7.2.40.0030.01017.03
7.2.30.0030.01017.09
7.2.20.0040.01116.87
7.2.10.0090.00616.79
7.2.00.0110.00618.14
7.1.330.0060.00915.69
7.1.320.0000.01015.71
7.1.310.0060.00315.96
7.1.300.0120.00015.46
7.1.290.0030.01015.52
7.1.280.0070.00715.45
7.1.270.0070.00715.91
7.1.260.0110.00715.96
7.1.250.0090.00616.00
7.1.200.0000.01315.60
7.1.100.0030.01018.20
7.1.70.0000.00816.77
7.1.60.0040.02219.40
7.1.50.0070.01416.87
7.1.00.0100.06722.44
7.0.200.0360.00714.87
7.0.60.0230.07721.72
7.0.50.0030.04717.80
7.0.40.0030.04320.06
7.0.30.0330.07320.18
7.0.20.0470.07020.01
7.0.10.0230.04720.04
7.0.00.0070.05020.21
5.6.280.0100.06720.82
5.6.210.0030.06320.61
5.6.200.0030.08318.14
5.6.190.0030.08720.77
5.6.180.0470.05320.77
5.6.170.0200.04720.37
5.6.160.0100.04320.52
5.6.150.0170.07018.16
5.6.140.0030.08718.13
5.6.130.0030.08718.15
5.6.120.0070.07021.11
5.6.110.0130.08721.11
5.6.100.0030.04021.13
5.6.90.0070.07020.96
5.6.80.0070.08020.48
5.5.350.0130.05020.52
5.5.340.0100.07317.95
5.5.330.0100.05320.40
5.5.320.0700.07020.32
5.5.310.0200.04020.34
5.5.300.0070.05718.02
5.5.290.0100.07717.91
5.5.280.0070.04020.79
5.5.270.0000.04720.86
5.5.260.0130.08020.75
5.5.250.0130.08020.55
5.5.240.0230.07020.11

preferences:
50.22 ms | 400 KiB | 5 Q