3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * In this case, we want to increase the default cost for BCRYPT to 12. * Note that we also switched to BCRYPT, which will always be 60 characters. */ $options = [ 'cost' => 12, ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>

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)
7.3.00.0370.27414.62
7.2.130.0400.27114.90
7.2.120.0370.27014.54
7.2.110.0370.26414.78
7.2.100.0400.26614.95
7.2.90.0370.27314.93
7.2.80.0100.27114.91
7.2.70.0340.26514.97
7.2.60.0230.25515.76
7.2.50.0300.27315.02
7.2.40.0300.27814.88
7.2.30.0850.27214.99
7.2.20.0390.26514.66
7.2.10.0300.26614.76
7.2.00.0230.27117.23
7.1.250.0400.26413.43
7.1.240.0510.26513.72
7.1.230.0460.27414.11
7.1.220.0410.26713.81
7.1.210.0170.27413.79
7.1.200.0260.25414.78
7.1.190.0300.26913.57
7.1.180.0420.26513.84
7.1.170.0200.26513.89
7.1.160.0520.27613.82
7.1.150.0480.27413.58
7.1.140.0360.26613.80
7.1.130.0360.27313.72
7.1.120.0430.27213.77
7.1.110.0360.27613.97
7.1.100.0150.26616.04
7.1.90.0280.27613.77
7.1.80.0430.26713.63
7.1.70.0150.26315.29
7.1.60.0280.28016.61
7.1.50.0230.25415.23
7.1.40.0480.27713.52
7.1.30.0260.27413.88
7.1.20.0440.26713.77
7.1.10.0410.26913.73
7.1.00.0230.27818.17
7.0.330.1120.26613.47
7.0.320.0400.26813.35
7.0.310.0290.27113.39
7.0.300.0390.27313.25
7.0.290.0490.27513.29
7.0.280.0420.26213.41
7.0.270.0360.28213.23
7.0.260.0520.26813.55
7.0.250.0480.28013.52
7.0.240.0340.26713.50
7.0.230.0420.26413.54
7.0.220.0300.27013.37
7.0.210.0420.26213.50
7.0.200.0380.25414.16
7.0.190.0510.26413.43
7.0.180.0400.26713.32
7.0.170.0430.26613.44
7.0.160.0390.26613.34
7.0.150.0330.26713.23
7.0.140.0250.29817.71
7.0.130.0330.27413.32
7.0.120.0430.26713.73
7.0.110.0620.26313.60
7.0.100.0470.26013.41
7.0.90.0460.26913.65
7.0.80.0320.26413.66
7.0.70.0230.28613.51
7.0.60.0190.30716.48
7.0.50.0190.27315.58
7.0.40.0230.27816.94
7.0.30.0230.31516.85
7.0.20.0300.30316.89
7.0.10.0400.31516.85
7.0.00.0300.29516.86
5.6.380.0100.28214.20
5.6.370.0130.26714.48
5.6.360.0130.27614.45
5.6.350.0220.26414.41
5.6.340.0230.25814.39
5.6.330.0200.26113.84
5.6.320.0120.28214.23
5.6.310.0130.27314.29
5.6.300.0070.28114.33
5.6.290.0230.26214.39
5.6.280.0080.30917.67
5.6.270.0100.27614.27
5.6.260.0140.29014.19
5.6.250.0130.27614.51
5.6.240.0190.26814.18
5.6.230.0190.28114.27
5.6.220.0090.27114.25
5.6.210.0130.31517.44
5.6.200.0110.30616.18
5.6.190.0100.30017.39
5.6.180.0070.29217.37
5.6.170.0220.28417.38
5.6.160.0070.31917.27
5.6.150.0080.30716.20
5.6.140.0130.30116.30
5.6.130.0080.27716.28
5.6.120.0080.33817.63
5.6.110.0120.30917.56
5.6.100.0130.28617.66
5.6.90.0080.30217.56
5.6.80.0080.28517.29
5.6.70.0230.29917.40
5.6.60.0160.27014.14
5.6.50.0160.26614.43
5.6.40.0070.28213.99
5.6.30.0200.26413.98
5.6.20.0070.27914.08
5.6.10.0160.28014.25
5.6.00.0130.27114.08
5.5.380.0100.27510.83
5.5.370.0070.26911.05
5.5.360.0070.26711.39
5.5.350.0210.28815.87
5.5.340.0070.28014.47
5.5.330.0070.29715.73
5.5.320.0180.30715.58
5.5.310.0120.27915.73
5.5.300.0020.29114.41
5.5.290.0080.31214.47
5.5.280.0120.30415.88
5.5.270.0120.27916.09
5.5.260.0120.28916.00
5.5.250.0080.31115.77
5.5.240.0210.30015.61
5.5.230.0070.27011.04
5.5.220.0070.27311.11
5.5.210.0030.26711.04
5.5.200.0070.28111.23
5.5.190.0130.25810.94
5.5.180.0030.28210.99
5.5.170.0130.26711.05
5.5.160.0160.25811.13
5.5.150.0100.26511.12
5.5.140.0030.27810.99
5.5.130.0030.28610.71
5.5.120.0170.26611.01
5.5.110.0170.25710.95
5.5.100.0130.26011.25
5.5.90.0130.27411.04
5.5.80.0030.27811.13
5.5.70.0130.27311.00
5.5.60.0130.26111.02
5.5.50.0120.25611.10
5.5.40.0200.26311.05
5.5.30.0100.26610.95
5.5.20.0100.26311.04
5.5.10.0030.26711.01
5.5.00.0100.26911.07
5.4.450.0100.02815.17
5.4.440.0140.03115.13
5.4.430.0210.03115.05
5.4.420.0200.03615.25
5.4.410.0310.02715.11
5.4.400.0100.02515.01
5.4.390.0140.02315.05
5.4.380.0150.02014.93
5.4.370.0160.02014.76
5.4.360.0180.01814.81
5.4.350.0160.02214.88
5.4.340.0150.02014.97
5.4.330.0090.00410.70
5.4.320.0190.03814.84
5.4.310.0240.03114.94
5.4.300.0190.03815.03
5.4.290.0180.03814.77
5.4.280.0160.03615.00
5.4.270.0250.03214.95
5.4.260.0240.03414.96
5.4.250.0180.04115.01
5.4.240.0180.03915.11
5.4.230.0230.03214.97
5.4.220.0250.03814.85
5.4.210.0240.03614.95
5.4.200.0130.04314.91
5.4.190.0300.03015.09
5.4.180.0200.02514.83
5.4.170.0190.02914.98
5.4.160.0170.02614.94
5.4.150.0200.02615.04
5.4.140.0130.02413.64
5.4.130.0210.01713.46
5.4.120.0300.02713.55
5.4.110.0170.03913.47
5.4.100.0180.03613.50
5.4.90.0350.01513.48
5.4.80.0220.02013.67
5.4.70.0160.02313.53
5.4.60.0260.03013.63
5.4.50.0210.03213.54
5.4.40.0170.03513.43
5.4.30.0180.02613.60
5.4.20.0140.02213.51
5.4.10.0140.03113.50
5.4.00.0170.03713.36
5.3.290.0210.03812.47
5.3.280.0260.03412.28
5.3.270.0110.02612.28
5.3.260.0210.02312.36
5.3.250.0150.02412.25
5.3.240.0190.01612.31
5.3.230.0160.02312.19
5.3.220.0210.03612.28
5.3.210.0180.04012.17
5.3.200.0200.02012.35
5.3.190.0240.03412.33
5.3.180.0250.02012.33
5.3.170.0170.03812.44
5.3.160.0230.03612.35
5.3.150.0230.01812.26
5.3.140.0200.03612.25
5.3.130.0170.02512.30
5.3.120.0240.01712.44
5.3.110.0170.04212.26
5.3.100.0150.02212.06
5.3.90.0170.02811.97
5.3.80.0210.03611.98
5.3.70.0200.02312.01
5.3.60.0130.02612.08
5.3.50.0160.03612.09
5.3.40.0170.02312.03
5.3.30.0200.03711.97
5.3.20.0180.03611.88
5.3.10.0180.03511.74
5.3.00.0180.02211.76

preferences:
35.92 ms | 401 KiB | 5 Q