3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; echo strlen($str); $passwd1 = $str . 'A'; $passwd2 = $str . 'B'; $hash1 = crypt($passwd1, $setting . $salt); $hash2 = crypt($passwd2, $setting . $salt); echo ($hash1 === $hash2 ? 'same' : 'unique');

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.0160.01018.27
8.3.50.0090.00921.02
8.3.40.0090.00918.71
8.3.30.0150.00319.06
8.3.20.0090.00020.07
8.3.10.0050.00521.96
8.3.00.0030.00622.45
8.2.180.0090.00916.63
8.2.170.0150.00922.96
8.2.160.0120.00920.39
8.2.150.0000.01024.18
8.2.140.0060.00324.66
8.2.130.0110.00726.16
8.2.120.0030.00619.56
8.2.110.0070.00421.04
8.2.100.0070.00717.78
8.2.90.0030.00619.13
8.2.80.0000.01017.97
8.2.70.0030.00717.63
8.2.60.0100.00018.04
8.2.50.0030.00718.10
8.2.40.0000.01120.59
8.2.30.0030.00619.18
8.2.20.0060.00317.55
8.2.10.0030.00717.79
8.2.00.0060.00617.77
8.1.280.0120.00625.92
8.1.270.0070.00420.36
8.1.260.0000.01026.35
8.1.250.0000.01028.09
8.1.240.0130.00723.92
8.1.230.0060.00617.70
8.1.220.0000.01017.79
8.1.210.0030.00718.77
8.1.200.0040.00717.35
8.1.190.0030.00617.23
8.1.180.0030.00918.10
8.1.170.0000.00918.75
8.1.160.0060.00318.91
8.1.150.0000.00918.50
8.1.140.0070.00417.42
8.1.130.0000.00917.83
8.1.120.0030.00617.41
8.1.110.0060.00317.39
8.1.100.0000.00917.29
8.1.90.0100.00017.41
8.1.80.0000.00917.37
8.1.70.0000.00917.41
8.1.60.0030.00917.39
8.1.50.0050.00517.36
8.1.40.0030.00717.43
8.1.30.0040.00717.53
8.1.20.0070.00417.57
8.1.10.0030.00717.50
8.1.00.0060.00617.32
8.0.300.0030.00618.77
8.0.290.0000.01016.75
8.0.280.0060.00318.47
8.0.270.0030.00617.25
8.0.260.0000.00916.68
8.0.250.0000.00916.84
8.0.240.0030.00716.86
8.0.230.0030.00616.81
8.0.220.0030.00616.86
8.0.210.0030.00616.86
8.0.200.0030.00616.82
8.0.190.0030.00716.83
8.0.180.0060.00316.79
8.0.170.0070.00316.81
8.0.160.0030.00716.84
8.0.150.0030.00616.86
8.0.140.0000.00916.86
8.0.130.0040.00413.29
8.0.120.0030.00716.75
8.0.110.0000.00916.90
8.0.100.0000.00916.75
8.0.90.0000.00916.92
8.0.80.0070.01716.89
8.0.70.0030.00616.88
8.0.60.0000.00916.95
8.0.50.0000.00916.78
8.0.30.0140.00817.01
8.0.20.0140.00817.40
8.0.10.0060.00316.77
8.0.00.0100.01416.80
7.4.330.0060.00315.00
7.4.320.0030.00616.49
7.4.300.0030.00616.41
7.4.290.0000.00816.38
7.4.280.0030.00616.41
7.4.270.0060.00316.58
7.4.260.0000.01016.50
7.4.250.0030.00616.60
7.4.240.0030.00616.58
7.4.230.0000.00916.40
7.4.220.0120.01216.61
7.4.210.0050.01116.48
7.4.200.0060.00316.29
7.4.190.0030.00616.73
7.4.160.0030.01716.39
7.4.150.0180.00617.40
7.4.140.0020.01917.86
7.4.130.0080.01216.46
7.4.120.0080.01216.49
7.4.110.0090.01316.39
7.4.100.0030.01716.51
7.4.90.0170.01116.47
7.4.80.0030.02019.39
7.4.70.0070.01316.33
7.4.60.0100.00916.35
7.4.50.0000.00916.43
7.4.40.0100.00622.77
7.4.30.0060.01216.50
7.4.00.0090.01014.89
7.3.330.0000.00713.01
7.3.320.0050.00213.09
7.3.310.0030.00616.34
7.3.300.0060.00316.23
7.3.290.0090.00916.42
7.3.280.0120.00916.24
7.3.270.0000.01917.40
7.3.260.0030.01616.42
7.3.250.0110.01016.23
7.3.240.0160.01016.36
7.3.230.0170.01116.48
7.3.210.0060.01316.53
7.3.200.0100.01019.39
7.3.190.0120.01516.25
7.3.180.0130.00716.50
7.3.170.0160.00416.27
7.3.160.0100.01016.38
7.3.120.0060.01314.81
7.3.110.0050.01414.67
7.3.100.0050.01214.60
7.3.90.0080.01014.94
7.3.80.0080.01014.51
7.3.70.0050.00914.81
7.3.60.0050.01314.84
7.3.50.0030.01114.68
7.3.40.0050.00714.90
7.3.30.0060.01114.80
7.3.20.0050.01316.60
7.3.10.0080.00716.67
7.3.00.0070.00916.68
7.2.330.0120.00916.59
7.2.320.0110.01116.46
7.2.310.0120.00916.64
7.2.300.0100.01716.51
7.2.290.0120.00816.61
7.2.250.0050.01615.00
7.2.240.0050.01614.96
7.2.230.0060.01415.00
7.2.220.0100.00815.04
7.2.210.0100.01014.98
7.2.200.0070.00915.17
7.2.190.0080.00614.92
7.2.180.0050.01414.85
7.2.170.0070.01014.91
7.2.110.0510.00316.70
7.2.100.0160.00616.73
7.2.90.0330.00716.77
7.2.80.0170.00616.66
7.2.70.0210.00917.11
7.2.60.0240.01016.93
7.2.50.0230.01516.73
7.2.40.0140.01416.94
7.2.30.0140.01116.98
7.2.20.0230.00716.90
7.2.10.0140.00516.89
7.2.00.0160.01116.66
7.1.330.0020.01715.95
7.1.320.0080.00815.91
7.1.310.0050.01115.89
7.1.300.0060.00915.64
7.1.290.0010.01515.69
7.1.280.0070.00815.74
7.1.270.0070.01015.64
7.1.260.0050.01315.74
7.1.230.0150.00415.73
7.1.220.0110.00715.73
7.1.210.0130.00915.89
7.1.200.0130.00915.72
7.1.190.0070.01315.42
7.1.180.0220.00915.77
7.1.170.0110.01515.51
7.1.160.0170.01015.92
7.1.150.0120.00915.78
7.1.140.0140.01115.89
7.1.130.0200.00615.81
7.1.120.0110.00515.41
7.1.110.0150.00715.88
7.1.100.0150.00915.95
7.1.90.0150.01215.79
7.1.80.0140.00615.80
7.1.70.0080.00916.62
7.1.60.0110.01717.80
7.1.50.0130.01716.34
7.1.40.0170.01416.03
7.1.30.0320.00715.94
7.1.20.0110.01115.94
7.1.10.0160.01315.82
7.1.00.0190.04218.94
7.0.310.0130.01015.59
7.0.300.0170.00415.43
7.0.290.0220.00615.20
7.0.280.0160.00715.48
7.0.270.0240.00815.29
7.0.260.0240.00315.40
7.0.250.0180.00715.38
7.0.240.0120.00815.35
7.0.230.0550.01015.49
7.0.220.0280.01015.47
7.0.210.0220.01115.49
7.0.200.0080.00716.16
7.0.190.0350.01115.41
7.0.180.0180.00815.48
7.0.170.0250.00715.45
7.0.160.0310.01015.24
7.0.150.0220.00315.45
7.0.140.0110.04118.71
7.0.130.0180.00715.36
7.0.120.0290.01315.36
7.0.110.0170.01015.14
7.0.100.0190.00415.50
7.0.90.0150.01115.44
7.0.80.0200.01015.39
7.0.70.0170.01015.21
7.0.60.0070.04517.67
7.0.50.0200.02616.71
7.0.40.0060.03116.66
7.0.30.0150.03516.83
7.0.20.0120.02916.69
7.0.10.0030.02816.86
7.0.00.0060.05416.74
5.6.380.0150.00314.26
5.6.370.0110.00514.41
5.6.360.0070.01114.24
5.6.350.0110.01114.56
5.6.340.0130.00414.02
5.6.330.0150.00614.37
5.6.320.0150.00414.41
5.6.310.0070.01114.39
5.6.300.0040.01214.29
5.6.290.0080.01214.50
5.6.280.0050.04317.54
5.6.270.0070.00714.32
5.6.260.0120.00814.41
5.6.250.0040.01514.36
5.6.240.0100.01014.57
5.6.230.0110.00714.16
5.6.220.0110.01214.17
5.6.210.0070.03817.48
5.6.200.0080.02516.17
5.6.190.0090.03517.30
5.6.180.0210.04317.25
5.6.170.0210.02817.29
5.6.160.0060.03017.52
5.6.150.0120.02416.26
5.6.140.0070.04416.26
5.6.130.0080.05216.14
5.6.120.0120.04717.68
5.6.110.0080.02417.65
5.6.100.0120.02217.59
5.6.90.0070.05217.77
5.6.80.0110.04517.24
5.6.70.2270.02517.34
5.6.60.0170.00314.16
5.6.50.0100.00713.97
5.6.40.0130.00714.12
5.6.30.0140.00714.45
5.6.20.0040.01614.33
5.6.10.0110.00514.33
5.6.00.0160.00014.19
5.5.380.0110.00612.79
5.5.370.0100.00712.79
5.5.360.0000.01512.79
5.5.350.0090.03616.60
5.5.340.0090.02315.40
5.5.330.0080.02816.59
5.5.320.0170.04516.53
5.5.310.0120.04516.55
5.5.300.0110.03115.40
5.5.290.0040.03015.40
5.5.280.0090.04916.76
5.5.270.0060.03616.88
5.5.260.0070.04716.82
5.5.250.0110.04316.69
5.5.240.0100.04016.41
5.5.230.0080.00812.79
5.5.220.0110.00412.79
5.5.210.0070.00612.79
5.5.200.0070.01012.79
5.5.190.0040.01212.79
5.5.180.0100.00712.79
5.5.170.0030.01314.02
5.5.160.0120.00412.79
5.5.150.0070.00712.79
5.5.140.0080.00812.79
5.5.130.0130.00312.79
5.5.120.0040.00812.79
5.5.110.0080.00812.79
5.5.100.0080.00612.79
5.5.90.0100.00712.79
5.5.80.0050.00912.79
5.5.70.0070.00712.79
5.5.60.0110.00612.79
5.5.50.0100.00612.79
5.5.40.0110.00412.79
5.5.30.0100.00612.79
5.5.20.0090.00912.79
5.5.10.0120.00412.79
5.5.00.0060.00912.79
5.4.450.0520.03216.14
5.4.440.0480.03815.95
5.4.430.0460.04116.05
5.4.420.0500.02716.03
5.4.410.0570.03115.97
5.4.400.0610.03615.64
5.4.390.0560.02915.78
5.4.380.0190.03215.69
5.4.370.0150.02415.64
5.4.360.0120.02815.77
5.4.350.0080.02512.38
5.4.340.0070.02412.38
5.4.330.0000.01412.79
5.4.320.0060.02312.62
5.4.310.0030.02712.62
5.4.300.0050.02412.62
5.4.290.0080.02412.62
5.4.280.0080.02612.57
5.4.270.0080.02912.57
5.4.260.0040.02512.57
5.4.250.0070.03315.79
5.4.240.0090.03315.76
5.4.230.0070.03315.70
5.4.220.0180.03515.76
5.4.210.0140.03515.77
5.4.200.0130.02715.72
5.4.190.0150.03015.84
5.4.180.0070.03615.83
5.4.170.0090.03115.91
5.4.160.0110.03015.75
5.4.150.0050.03615.84
5.4.140.0070.03614.51
5.4.130.0090.02814.53
5.4.120.0070.03214.51
5.4.110.0030.03514.60
5.4.100.0130.02514.70
5.4.90.0060.02914.57
5.4.80.0070.02914.60
5.4.70.0050.03214.63
5.4.60.0100.03214.60
5.4.50.0030.04414.61
5.4.40.0120.03214.67
5.4.30.0080.02814.58
5.4.20.0130.02514.62
5.4.10.0090.04214.55
5.4.00.0080.02814.35
5.3.290.0090.02512.79
5.3.280.0130.03413.58
5.3.270.0080.03013.70
5.3.260.0120.02613.72
5.3.250.0110.02713.63
5.3.240.0060.04413.69
5.3.230.0050.03113.54
5.3.220.0070.03013.66
5.3.210.0090.02813.64
5.3.200.0070.03113.68
5.3.190.0070.04113.61
5.3.180.0050.03213.63
5.3.170.0040.03413.52
5.3.160.0050.03113.69
5.3.150.0100.03013.68
5.3.140.0090.03113.68
5.3.130.0090.03113.62
5.3.120.0080.03813.67
5.3.110.0080.03213.67
5.3.100.0110.02813.34
5.3.90.0080.02813.36
5.3.80.0060.03113.42
5.3.70.0080.02813.45
5.3.60.0030.03113.42
5.3.50.0070.02713.44
5.3.40.0100.02213.34
5.3.30.0090.03513.46
5.3.20.0080.03313.16
5.3.10.0060.02813.19
5.3.00.0060.02813.25
5.2.170.0060.02811.95
5.2.160.0090.02811.98
5.2.150.0030.02311.93
5.2.140.0110.02111.79
5.2.130.0110.02611.91
5.2.120.0060.02811.88
5.2.110.0100.01511.91
5.2.100.0030.02311.96
5.2.90.0040.02311.92
5.2.80.0070.02211.94
5.2.70.0060.02511.83
5.2.60.0070.02011.85
5.2.50.0110.02311.84
5.2.40.0070.02011.80
5.2.30.0080.02811.85
5.2.20.0100.01711.87
5.2.10.0080.01811.90
5.2.00.0020.02411.71
5.1.60.0030.01911.34
5.1.50.0030.01811.41
5.1.40.0060.01711.42
5.1.30.0070.01511.51
5.1.20.0030.02111.61
5.1.10.0060.01811.42
5.1.00.0060.01811.42
5.0.50.0040.01610.71
5.0.40.0060.01310.55
5.0.30.0030.02310.52
5.0.20.0050.01210.48
5.0.10.0020.01810.45
5.0.00.0030.02310.38
4.4.90.0040.0129.56
4.4.80.0040.0129.56
4.4.70.0030.0129.56
4.4.60.0050.0149.56
4.4.50.0030.0119.56
4.4.40.0020.0209.56
4.4.30.0030.0109.56
4.4.20.0060.0109.56
4.4.10.0070.0119.56
4.4.00.0020.0229.56
4.3.110.0030.0139.56
4.3.100.0000.0159.56
4.3.90.0030.0119.56
4.3.80.0040.0179.56
4.3.70.0030.0139.56
4.3.60.0020.0149.56
4.3.50.0030.0169.56
4.3.40.0070.0179.56
4.3.30.0050.0109.56
4.3.20.0020.0129.56
4.3.10.0050.0149.56
4.3.00.0110.00810.61

preferences:
48.02 ms | 401 KiB | 5 Q