3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_hash($str, $range=100){ $number = crc32($str); return $number % $range; } /* $hash = md5("ececa23f92d363f2471a5255b878ff4375960be4695f3dd8afe39a17428f4f24"); echo base_convert($hash, 16, 10); */ $hash = "ececa23f92d363f2471a5255b878ff4375960be4695f3dd8afe39a17428f4f24"; echo str_hash($hash, 5);

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.0140.00316.50
8.3.50.0150.00016.50
8.3.40.0120.00318.59
8.3.30.0090.01218.52
8.3.20.0040.00421.85
8.3.10.0110.00720.53
8.3.00.0040.00421.96
8.2.180.0100.00716.50
8.2.170.0100.01022.96
8.2.160.0090.00619.41
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00821.00
8.2.120.0100.00426.35
8.2.110.0060.00320.52
8.2.100.0090.00317.81
8.2.90.0000.00818.03
8.2.80.0000.00817.97
8.2.70.0000.00818.05
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0080.00019.48
8.2.30.0030.00619.13
8.2.20.0000.00718.06
8.2.10.0070.00018.12
8.2.00.0030.00617.63
8.1.280.0130.00725.92
8.1.270.0050.00323.92
8.1.260.0070.00728.09
8.1.250.0070.00728.09
8.1.240.0030.00622.08
8.1.230.0040.00820.70
8.1.220.0040.00417.77
8.1.210.0050.00319.04
8.1.200.0050.00317.35
8.1.190.0060.00717.23
8.1.180.0040.00418.10
8.1.170.0040.00418.47
8.1.160.0030.00322.17
8.1.150.0040.00418.74
8.1.140.0040.00419.41
8.1.130.0030.00317.51
8.1.120.0000.00717.39
8.1.110.0080.00017.39
8.1.100.0040.00417.29
8.1.90.0050.00317.29
8.1.80.0030.00717.30
8.1.70.0030.00317.43
8.1.60.0080.00017.47
8.1.50.0040.00417.42
8.1.40.0000.00817.50
8.1.30.0030.00617.71
8.1.20.0080.00017.66
8.1.10.0050.00217.58
8.1.00.0070.00017.50
8.0.300.0000.00719.86
8.0.290.0060.00316.63
8.0.280.0040.00418.37
8.0.270.0070.00017.32
8.0.260.0000.00917.32
8.0.250.0040.00316.97
8.0.240.0070.00316.87
8.0.230.0030.00516.91
8.0.220.0080.00016.81
8.0.210.0030.00316.96
8.0.200.0000.00716.94
8.0.190.0000.00716.99
8.0.180.0040.00416.94
8.0.170.0040.00416.98
8.0.160.0080.00016.86
8.0.150.0040.00416.86
8.0.140.0030.00316.87
8.0.130.0060.00313.23
8.0.120.0000.00816.91
8.0.110.0000.00916.68
8.0.100.0050.00316.84
8.0.90.0040.00416.94
8.0.80.0070.01116.85
8.0.70.0060.00316.87
8.0.60.0000.00716.92
8.0.50.0000.00816.86
8.0.30.0130.00517.13
8.0.20.0100.01017.40
8.0.10.0040.00416.99
8.0.00.0090.01316.75
7.4.330.0000.00615.21
7.4.320.0000.00616.34
7.4.300.0000.00616.51
7.4.290.0000.00716.51
7.4.280.0040.00416.59
7.4.270.0000.00716.58
7.4.260.0070.00016.61
7.4.250.0030.00616.56
7.4.240.0030.00316.63
7.4.230.0030.00316.35
7.4.220.0180.00016.41
7.4.210.0050.00916.53
7.4.200.0030.00316.61
7.4.160.0100.00516.45
7.4.150.0140.00317.40
7.4.140.0140.00617.86
7.4.130.0140.00816.51
7.4.120.0110.00716.55
7.4.110.0180.00016.50
7.4.100.0060.01216.67
7.4.90.0070.01016.39
7.4.80.0070.01019.39
7.4.70.0130.01016.57
7.4.60.0120.00316.45
7.4.50.0030.01016.46
7.4.40.0120.00416.54
7.4.30.0100.01016.64
7.4.00.0120.00314.82
7.3.330.0040.00413.38
7.3.320.0000.00613.15
7.3.310.0000.00716.30
7.3.300.0070.00016.31
7.3.290.0050.00316.32
7.3.280.0060.01316.30
7.3.270.0070.01017.40
7.3.260.0100.00716.45
7.3.250.0080.01116.45
7.3.240.0090.00916.38
7.3.230.0160.00016.47
7.3.210.0080.01216.32
7.3.200.0060.00916.50
7.3.190.0110.00816.49
7.3.180.0080.00816.50
7.3.170.0060.01216.61
7.3.160.0040.01416.52
7.2.330.0110.00716.52
7.2.320.0040.01916.71
7.2.310.0090.00916.75
7.2.300.0110.01116.38
7.2.290.0070.01116.37
7.2.00.0070.01019.53
7.1.70.0070.00017.32
7.1.60.0040.00817.26
7.1.00.0070.07322.35
7.0.200.0350.00614.83
7.0.110.0030.06320.21
7.0.100.0030.06020.20
7.0.90.0100.05320.23
7.0.80.0130.05320.26
7.0.70.0100.05320.29
7.0.60.0070.05720.18
7.0.50.0130.05020.36
7.0.40.0330.06720.32
7.0.30.0230.06020.23
7.0.20.0200.06320.33
7.0.10.0330.04720.19
7.0.00.0470.06020.33
5.6.260.0100.05321.06
5.6.250.0230.04021.13
5.6.240.0070.06321.03
5.6.230.0070.06321.03
5.6.220.0100.05320.98
5.6.210.0000.06320.95
5.6.200.0070.06021.06
5.6.190.0070.06020.93
5.6.180.0100.05320.97
5.6.170.0030.06021.06
5.6.160.0130.05320.75
5.6.150.0130.05721.01
5.6.140.0170.05320.83
5.6.130.0100.05321.04
5.6.120.0100.06021.02
5.6.110.0200.05020.79
5.6.100.0100.06320.99
5.6.90.0070.06021.07
5.6.80.0030.08020.13
5.6.70.0100.06020.46
5.6.60.0070.06020.23
5.6.50.0030.06020.42
5.6.40.0100.05020.29
5.6.30.0030.06020.21
5.6.20.0100.08320.25
5.6.10.0030.06020.21
5.6.00.0070.05720.39

preferences:
61.52 ms | 400 KiB | 5 Q