3v4l.org

run code in 300+ PHP versions simultaneously
<?php $md5s = []; for ($id=1; true; $id++) { $md5 = str_replace( ['+', '/', '='], '', base64_encode(md5($id . 'something')) ); if (($collision = array_search($md5, $md5s)) !== false) { exit("collision: {$id}, {$md5s[$collision]}"); } if ($id % 100 === 0) { echo "{$id} iterations; no collisions so far\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)
8.3.60.0130.06218.18
8.3.50.0160.06216.19
8.3.40.0130.05418.88
8.3.30.0170.06918.84
8.3.20.0130.05721.90
8.3.10.0100.05221.90
8.3.00.0110.03220.77
8.2.180.0100.07718.29
8.2.170.0100.07322.96
8.2.160.0070.07722.13
8.2.150.0030.07124.18
8.2.140.0070.05924.66
8.2.130.0130.03622.18
8.2.120.0070.03026.35
8.2.110.0160.02921.18
8.2.100.0130.04517.72
8.2.90.0100.03120.60
8.2.80.0070.03719.11
8.2.70.0070.04917.80
8.2.60.0000.04218.09
8.2.50.0000.04419.48
8.2.40.0070.03420.55
8.2.30.0030.05019.34
8.2.20.0030.04518.02
8.2.10.0070.04618.20
8.2.00.0000.05518.08
8.1.280.0100.06325.92
8.1.270.0000.03423.99
8.1.260.0070.02726.35
8.1.250.0070.03128.09
8.1.240.0070.05822.45
8.1.230.0160.04520.89
8.1.220.0070.03617.79
8.1.210.0070.04318.97
8.1.200.0070.04317.35
8.1.190.0030.03917.00
8.1.180.0100.04418.10
8.1.170.0100.04018.53
8.1.160.0000.04218.95
8.1.150.0090.03122.18
8.1.140.0000.04219.59
8.1.130.0030.04720.59
8.1.120.0030.03917.45
8.1.110.0030.04017.50
8.1.100.0060.03917.50
8.1.90.0070.04717.52
8.1.80.0060.04517.36
8.1.70.0030.04917.50
8.1.60.0130.04617.50
8.1.50.0000.05517.51
8.1.40.0070.05117.41
8.1.30.0030.05317.50
8.1.20.0100.04417.50
8.1.10.0070.03817.50
8.1.00.0030.05417.49
8.0.300.0100.04519.86
8.0.290.0070.04316.63
8.0.280.0100.03118.36
8.0.270.0100.04316.73
8.0.260.0060.03516.71
8.0.250.0040.03917.01
8.0.240.0030.05216.79
8.0.230.0030.05016.88
8.0.220.0000.05516.94
8.0.210.0000.05616.87
8.0.200.0030.03816.84
8.0.190.0000.04416.77
8.0.180.0000.05416.95
8.0.170.0100.04016.84
8.0.160.0100.04616.94
8.0.150.0130.04016.98
8.0.140.0070.04416.88
8.0.130.0030.05113.45
8.0.120.0000.04416.87
8.0.110.0000.04716.92
8.0.100.0070.04316.91
8.0.90.0040.04716.88
8.0.80.0210.08816.96
8.0.70.0030.04416.74
8.0.60.0030.04216.72
8.0.50.0090.04416.71
8.0.30.0100.06217.04
8.0.20.0210.10917.40
8.0.10.0100.03917.00
8.0.00.0130.09816.64
7.4.330.0030.05015.55
7.4.320.0060.03816.32
7.4.300.0030.04016.48
7.4.290.0130.04916.39
7.4.280.0100.04516.45
7.4.270.0030.05316.45
7.4.260.0100.04313.14
7.4.250.0100.03616.46
7.4.240.0100.04516.49
7.4.230.0000.05716.59
7.4.220.0160.09016.40
7.4.210.0060.06616.38
7.4.200.0040.03916.58
7.4.160.0110.11016.37
7.4.150.0130.10617.40
7.4.140.0220.07817.86
7.4.130.0260.16616.39
7.4.120.0130.12716.27
7.4.110.0180.10616.43
7.4.100.0130.11216.39
7.4.90.0090.14616.45
7.4.80.0130.10219.39
7.4.70.0230.08116.41
7.4.60.0100.10516.25
7.4.50.0070.06316.52
7.4.40.0140.10116.60
7.4.30.0170.09916.51
7.3.330.0000.04813.14
7.3.320.0000.04513.17
7.3.310.0070.04916.11
7.3.300.0030.05516.27
7.3.290.0060.07016.24
7.3.280.0120.08016.22
7.3.270.0220.11417.40
7.3.260.0190.09516.13
7.3.250.0190.12316.19
7.3.240.0180.07516.20
7.3.230.0100.12016.58
7.3.210.0250.09816.22
7.3.200.0280.10616.26
7.3.190.0230.08516.22
7.3.180.0180.11316.14
7.3.170.0060.08916.38
7.3.160.0100.08516.36
7.2.330.0150.08116.34
7.2.320.0060.07916.36
7.2.310.0290.12316.29
7.2.300.0100.08616.41
7.2.290.0200.10216.36
7.1.60.0470.10733.37
7.1.50.0270.10333.07
7.1.40.0570.11332.80
7.1.30.0530.07032.87
7.1.20.0370.09332.89
7.1.10.0200.11714.78
7.1.00.0370.07714.77
7.0.200.0200.09015.09
7.0.190.0170.09014.77
7.0.180.0270.08314.49
7.0.170.0500.12714.34
7.0.160.0430.13714.40
7.0.150.0270.09014.39
7.0.140.0200.09314.72
7.0.130.0300.08714.64
7.0.120.0930.13014.61
7.0.110.0330.10014.37
7.0.100.0370.09014.25
7.0.90.0300.08014.59
7.0.80.0330.11014.76
7.0.70.0300.08714.40
7.0.60.0270.07714.13
7.0.50.0270.09014.80
7.0.40.0470.10014.63
7.0.30.0300.08314.57
7.0.20.1370.12314.57
7.0.10.0430.11714.54
7.0.00.0330.09014.80

preferences:
31.85 ms | 400 KiB | 5 Q