3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Calculates the MD5 hash of str using the ยป RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash."; for ($i = 0; $i < 1000000; $i++) { $thing = md5($string); }

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.0070.57516.25
8.3.50.0130.57621.83
8.3.40.0130.55518.61
8.3.30.0070.55318.51
8.3.20.0070.29520.21
8.3.10.0000.30423.70
8.3.00.0030.29819.72
8.2.180.0100.57316.75
8.2.170.0100.56122.96
8.2.160.0100.55620.43
8.2.150.0070.30024.18
8.2.140.0030.30124.66
8.2.130.0070.29626.16
8.2.120.0070.29821.06
8.2.110.0130.31520.39
8.2.100.0100.36117.91
8.2.90.0030.36319.05
8.2.80.0070.36217.97
8.2.70.0000.36717.49
8.2.60.0070.39917.92
8.2.50.0070.36118.07
8.2.40.0030.39019.39
8.2.30.0000.36520.51
8.2.20.0030.36517.61
8.2.10.0070.36118.04
8.2.00.0030.36618.03
8.1.280.0100.60025.92
8.1.270.0130.33723.82
8.1.260.0100.29426.35
8.1.250.0000.30628.09
8.1.240.0030.32922.05
8.1.230.0130.36917.66
8.1.220.0000.36817.79
8.1.210.0070.36118.77
8.1.200.0030.36817.23
8.1.190.0070.36217.70
8.1.180.0070.36218.10
8.1.170.0030.36818.39
8.1.160.0070.36820.76
8.1.150.0000.37718.73
8.1.140.0030.36519.51
8.1.130.0030.36217.68
8.1.120.0070.36117.43
8.1.110.0070.36217.42
8.1.100.0030.36817.28
8.1.90.0030.37117.41
8.1.80.0070.36017.37
8.1.70.0000.36917.25
8.1.60.0000.38217.47
8.1.50.0070.37717.33
8.1.40.0100.39517.46
8.1.30.0070.37917.63
8.1.20.0000.38217.53
8.1.10.0030.38117.36
8.1.00.0070.37817.39
8.0.300.0000.37618.77
8.0.290.0070.36316.63
8.0.280.0070.36418.28
8.0.270.0070.36217.10
8.0.260.0030.36217.19
8.0.250.0070.35916.93
8.0.240.0030.37216.86
8.0.230.0000.37116.77
8.0.220.0070.36016.71
8.0.210.0030.36216.80
8.0.200.0030.36116.95
8.0.190.0070.38316.89
8.0.180.0070.37416.88
8.0.170.0030.37716.87
8.0.160.0030.37816.89
8.0.150.0030.38216.75
8.0.140.0030.39316.69
8.0.130.0030.41613.18
8.0.120.0000.38416.77
8.0.110.0030.38016.68
8.0.100.0000.38416.87
8.0.90.0000.39416.78
8.0.80.0060.57616.84
8.0.70.0170.37716.77
8.0.60.0070.37616.78
8.0.50.0030.38116.82
8.0.30.0120.45016.94
8.0.20.0150.53617.40
8.0.10.0030.41716.73
8.0.00.0130.56016.70
7.4.330.0030.37216.84
7.4.320.0100.36516.48
7.4.300.0000.37416.54
7.4.290.0030.38116.36
7.4.280.0000.39016.28
7.4.270.0030.38916.54
7.4.260.0070.37916.49
7.4.250.0030.38316.50
7.4.240.0070.38516.43
7.4.230.0030.38116.63
7.4.220.0060.65616.51
7.4.210.0080.54916.59
7.4.200.0030.38316.42
7.4.160.0130.53316.61
7.4.150.0130.56717.40
7.4.140.0150.62717.86
7.4.130.0130.58216.43
7.4.120.0190.54016.38
7.4.110.0070.56616.36
7.4.100.0160.66016.45
7.4.90.0100.56716.32
7.4.80.0130.54719.39
7.4.70.0190.53016.49
7.4.60.0100.52916.35
7.4.50.0030.40616.33
7.4.40.0030.52516.45
7.4.30.0160.66016.54
7.4.00.0070.47214.89
7.3.330.0000.38613.14
7.3.320.0000.38713.18
7.3.310.0030.38516.23
7.3.300.0070.37916.09
7.3.290.0000.39416.23
7.3.280.0100.58316.22
7.3.270.0130.53517.40
7.3.260.0070.53516.54
7.3.250.0140.53716.37
7.3.240.0190.57516.39
7.3.230.0100.52916.54
7.3.210.0100.57616.18
7.3.200.0100.53316.41
7.3.190.0130.58516.46
7.3.180.0130.57816.69
7.3.170.0100.66016.27
7.3.160.0070.53016.25
7.3.120.0000.56114.91
7.3.110.0030.56014.75
7.3.100.0170.53614.74
7.3.90.0070.43614.73
7.3.80.0030.52914.53
7.3.70.0130.49714.71
7.3.60.0030.47614.96
7.3.50.0000.43514.83
7.3.40.0070.47114.83
7.3.30.0030.54914.57
7.3.20.0000.42416.73
7.3.10.0030.52016.55
7.3.00.0030.54316.82
7.2.330.0060.55716.58
7.2.320.0100.77016.63
7.2.310.0060.56716.66
7.2.300.0100.56916.64
7.2.290.0070.58816.64
7.2.250.0100.59314.79
7.2.240.0160.58514.99
7.2.230.0070.56315.11
7.2.220.0030.57214.66
7.2.210.0000.60215.05
7.2.200.0050.45315.17
7.2.190.0000.46614.92
7.2.180.0070.59514.89
7.2.170.0070.45614.76
7.2.160.0070.47014.97
7.2.150.0030.44216.98
7.2.140.0100.57516.97
7.2.130.0030.45016.82
7.2.120.0100.50017.11
7.2.110.0100.45016.93
7.2.100.0030.56316.65
7.2.90.0030.55216.95
7.2.80.0070.56517.06
7.2.70.0030.45316.80
7.2.60.0070.58716.93
7.2.50.0030.55416.87
7.2.40.0030.58316.73
7.2.30.0070.52016.98
7.2.20.0030.45716.83
7.2.10.0000.59216.68
7.2.00.0070.47918.08
7.1.330.0100.66215.73
7.1.320.0000.68615.64
7.1.310.0070.67715.86
7.1.300.0030.68615.84
7.1.290.0070.66515.83
7.1.280.0030.56815.63
7.1.270.0030.64215.89
7.1.260.0030.64615.80
7.1.250.0070.60416.02
7.1.240.0000.68615.98
7.1.230.0000.65515.82
7.1.220.0070.54715.95
7.1.210.0070.54115.89
7.1.200.0030.62315.85
7.1.190.0030.65915.83
7.1.180.0030.67815.54
7.1.170.0070.58715.73
7.1.160.0070.70015.98
7.1.150.0030.63015.61
7.1.140.0070.68415.91
7.1.130.0100.55515.77
7.1.120.0070.61515.68
7.1.110.0070.70315.90
7.1.100.0070.58216.98
7.1.90.0070.55615.82
7.1.80.0030.53115.95
7.1.70.0070.52016.43
7.1.60.0070.60517.53
7.1.50.0070.49516.20
7.1.40.0030.67115.84
7.1.30.0070.65315.93
7.1.20.0030.69115.86
7.1.10.0000.57315.78
7.1.00.0080.58619.10
7.0.330.0030.67615.25
7.0.320.0000.65815.42
7.0.310.0030.59515.27
7.0.300.0070.66415.18
7.0.290.0030.53915.43
7.0.280.0130.67215.27
7.0.270.0000.70515.31
7.0.260.0100.66415.43
7.0.250.0000.70715.50
7.0.240.0100.54415.55
7.0.230.0030.68115.38
7.0.220.0070.64515.33
7.0.210.0030.67115.53
7.0.200.0050.59516.06
7.0.190.0030.69015.55
7.0.180.0100.69715.59
7.0.170.0070.54715.26
7.0.160.0030.68515.13
7.0.150.0030.63115.36
7.0.140.0070.63915.28
7.0.130.0000.65915.46
7.0.120.0070.69915.14
7.0.110.0000.70815.48
7.0.100.0030.55115.33
7.0.90.0070.62515.57
7.0.80.0000.58215.58
7.0.70.0030.60515.58
7.0.60.0070.51217.69
7.0.50.0100.51516.75
7.0.40.0050.56816.82
7.0.30.0120.50316.88
7.0.20.0120.57716.82
7.0.10.0070.57416.80
7.0.00.0100.57916.77
5.6.400.0000.63914.42
5.6.390.0000.78914.30
5.6.380.0070.69314.51
5.6.370.0030.79014.42
5.6.360.0100.65114.34
5.6.350.0070.66714.16
5.6.340.0000.82813.96
5.6.330.0070.80314.56
5.6.320.0030.82114.58
5.6.310.0070.70613.77
5.6.300.0070.74314.25
5.6.290.0070.64614.04
5.6.280.0030.65417.63
5.6.270.0030.77914.38
5.6.260.0030.65214.35
5.6.250.0030.72714.22
5.6.240.0100.79314.57
5.6.230.0070.63114.18
5.6.220.0000.76914.00
5.6.210.0050.67517.44
5.6.200.0050.59916.09
5.6.190.0020.60017.36
5.6.180.0180.65217.42
5.6.170.0170.68217.38
5.6.160.0050.65717.38
5.6.150.0050.62716.06
5.6.140.0070.62616.24
5.6.130.0080.62716.32
5.6.120.0030.67717.62
5.6.110.0070.69417.63
5.6.100.0050.58417.76
5.6.90.0080.68117.73
5.6.80.0080.67417.13
5.6.70.0030.68714.11
5.6.60.0000.65114.23
5.6.50.0030.72514.17
5.6.40.0070.68414.14
5.6.30.0100.78514.39
5.6.20.0100.77714.34
5.6.10.0100.63914.25
5.6.00.0070.76514.07
5.5.380.0000.74014.39
5.5.370.0070.79514.06
5.5.360.0030.82914.00
5.5.350.0170.69317.11
5.5.340.0050.62816.17
5.5.330.0070.70417.20
5.5.320.0030.68817.17
5.5.310.0200.67317.17
5.5.300.0070.59616.12
5.5.290.0020.69416.04
5.5.280.0030.59617.42
5.5.270.0070.69217.57
5.5.260.0020.59517.58
5.5.250.0030.67417.41
5.5.240.0070.62117.15
5.5.230.0170.77014.08
5.5.220.0030.66114.13
5.5.210.0070.81514.09
5.5.200.0030.67814.33
5.5.190.0070.72614.29
5.5.180.0030.79214.03
5.5.170.0000.74913.84
5.5.160.0070.72714.27
5.5.150.0030.77614.04
5.5.140.0070.78914.30
5.5.130.0030.64613.98
5.5.120.0030.80714.17
5.5.110.0030.82914.21
5.5.100.0030.81514.08
5.5.90.0030.71514.27
5.5.80.0070.72414.32
5.5.70.0030.74214.46
5.5.60.0030.79114.13
5.5.50.0030.81214.23
5.5.40.0080.71513.99
5.5.30.0000.75114.23
5.5.20.0100.67614.25
5.5.10.0030.67114.23
5.5.00.0000.61614.39

preferences:
52.3 ms | 401 KiB | 5 Q