3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insecureMd5Kdf($message, $raw = false) { $bytes = md5($message, true); $output = ''; for ($i = 0; $i < 16; ++$i) { $int = ord($bytes[$i]) & 127; $output .= pack('C', $int); } if (!$raw) { return bin2hex($output); } return $output; } var_dump(insecureMd5Kdf('apple'));

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.4.120.0120.00822.49
8.4.110.0150.00520.43
8.4.100.0140.00817.77
8.4.90.0110.01018.85
8.4.80.0060.00218.85
8.4.70.0050.00918.05
8.4.60.0120.00818.90
8.4.50.0040.00518.66
8.4.40.0060.01319.69
8.4.30.0170.00317.52
8.4.20.0120.01220.55
8.4.10.0090.00017.38
8.3.250.0140.00518.98
8.3.240.0080.01116.41
8.3.230.0040.00516.57
8.3.220.0120.00319.14
8.3.210.0090.00718.41
8.3.200.0060.00416.66
8.3.190.0050.00517.12
8.3.180.0120.00718.92
8.3.170.0090.01020.69
8.3.160.0080.00617.18
8.3.150.0080.00017.07
8.3.140.0030.01516.41
8.3.130.0000.00816.46
8.3.120.0080.00820.95
8.3.110.0060.00320.94
8.3.100.0040.00416.54
8.3.90.0060.01226.77
8.3.80.0060.00318.31
8.3.70.0040.01116.63
8.3.60.0040.01118.41
8.3.50.0120.00518.07
8.3.40.0040.01118.68
8.3.30.0090.00618.89
8.3.20.0030.00518.85
8.3.10.0040.00421.76
8.3.00.0090.00023.51
8.2.290.0030.00520.53
8.2.280.0110.00718.54
8.2.270.0090.00919.21
8.2.260.0040.00416.64
8.2.250.0080.01116.66
8.2.240.0080.00017.41
8.2.230.0060.01222.58
8.2.220.0050.00524.06
8.2.210.0100.00726.77
8.2.200.0090.00318.29
8.2.190.0150.00618.41
8.2.180.0140.00725.92
8.2.170.0130.00319.14
8.2.160.0090.00918.96
8.2.150.0070.00024.18
8.2.140.0040.01124.66
8.2.130.0030.00621.04
8.2.120.0000.00726.35
8.2.110.0030.00721.00
8.2.100.0100.00317.72
8.2.90.0050.00320.60
8.2.80.0000.00818.05
8.2.70.0050.00318.05
8.2.60.0040.00718.34
8.2.50.0000.00919.02
8.2.40.0040.00421.26
8.2.30.0090.00018.18
8.2.20.0000.00718.13
8.2.10.0040.00418.05
8.2.00.0000.00818.00
8.1.330.0120.00621.67
8.1.320.0110.00816.30
8.1.310.0100.00316.84
8.1.300.0090.00016.93
8.1.290.0090.00030.84
8.1.280.0110.01125.92
8.1.270.0040.00422.10
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00323.92
8.1.230.0030.00817.95
8.1.220.0080.00017.78
8.1.210.0080.00019.23
8.1.200.0000.00917.35
8.1.190.0030.00617.13
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0040.00418.90
8.1.150.0040.00418.98
8.1.140.0020.00518.95
8.1.130.0070.00020.26
8.1.120.0040.00417.45
8.1.110.0020.00517.46
8.1.100.0080.00017.45
8.1.90.0000.00817.45
8.1.80.0050.00317.43
8.1.70.0000.00717.36
8.1.60.0050.00317.63
8.1.50.0040.00417.44
8.1.40.0000.01017.50
8.1.30.0070.00717.68
8.1.20.0000.00817.59
8.1.10.0040.00417.61
8.1.00.0040.00417.52
8.0.300.0070.00020.04
8.0.290.0040.00416.88
8.0.280.0070.00018.36
8.0.270.0030.00317.25
8.0.260.0050.00520.13
8.0.250.0100.00016.96
8.0.240.0000.00616.98
8.0.230.0000.00716.97
8.0.220.0000.00716.89
8.0.210.0040.00416.91
8.0.200.0000.00716.90
8.0.190.0000.00716.95
8.0.180.0000.00816.87
8.0.170.0080.00016.87
8.0.160.0000.00816.89
8.0.150.0040.00416.85
8.0.140.0040.00416.86
8.0.130.0030.00313.32
8.0.120.0040.00416.78
8.0.110.0000.00716.80
8.0.100.0050.00216.89
8.0.90.0070.00016.68
8.0.80.0020.01316.80
8.0.70.0000.00816.89
8.0.60.0000.00716.87
8.0.50.0040.00417.00
8.0.30.0110.00817.17
8.0.20.0060.01217.40
8.0.10.0050.00217.08
8.0.00.0060.01216.58
7.4.330.0050.00015.55
7.4.320.0020.00516.60
7.4.300.0030.00316.50
7.4.290.0040.00416.57
7.4.280.0060.00316.64
7.4.270.0060.00016.58
7.4.260.0030.00716.60
7.4.250.0050.00316.57
7.4.240.0000.00716.43
7.4.230.0030.00316.70
7.4.220.0030.00516.58
7.4.210.0110.00316.44
7.4.200.0000.00716.43
7.4.160.0120.00616.47
7.4.140.0100.00917.86
7.4.130.0030.01516.57
7.4.120.0110.00716.49
7.4.110.0060.01116.52
7.4.100.0130.00916.70
7.4.90.0180.00516.62
7.4.80.0060.01219.39
7.4.70.0080.00816.43
7.4.60.0090.00616.53
7.4.50.0060.00616.54
7.4.40.0040.01216.41
7.4.00.0110.00415.04
7.3.330.0000.00613.34
7.3.320.0020.00213.32
7.3.310.0070.00016.39
7.3.300.0050.00216.38
7.3.290.0070.00016.34
7.3.280.0080.00916.33
7.3.260.0150.00516.52
7.3.240.0110.00916.37
7.3.230.0160.00616.32
7.3.210.0110.00716.68
7.3.200.0060.00916.60
7.3.190.0100.00616.47
7.3.180.0160.00316.38
7.3.170.0030.01316.58
7.3.160.0060.01016.50
7.3.70.0080.01714.88
7.3.60.0090.00914.69
7.3.50.0100.01915.00
7.3.40.0130.00614.73
7.3.30.0090.01214.87
7.3.20.0130.01014.74
7.3.10.0260.00416.72
7.3.00.0060.00916.42
7.2.330.0130.00716.57
7.2.320.0110.00616.54
7.2.310.0110.00516.67
7.2.300.0120.00616.75
7.2.290.0090.00916.79
7.2.200.0070.00714.94
7.2.190.0090.01315.12
7.2.180.0030.01214.96
7.2.170.0100.01314.76
7.2.160.0070.00714.94
7.2.150.0180.01115.21
7.2.140.0120.00816.98
7.2.130.0050.01016.80
7.2.120.0100.00716.89
7.2.110.0120.00917.09
7.2.100.0210.01116.04
7.2.90.0410.01015.84
7.2.80.0180.01015.89
7.2.70.0700.00516.07
7.2.60.0570.00516.01
7.2.50.0660.00815.98
7.2.40.0170.01316.21
7.2.30.0550.01116.10
7.2.20.0610.01115.90
7.2.10.0500.01016.00
7.2.00.0590.00816.03
7.1.300.0210.00714.03
7.1.290.0250.00613.95
7.1.280.0100.01013.78
7.1.270.0190.00914.05
7.1.260.0080.01115.59
7.1.250.0070.01115.78
7.1.240.0180.01115.60
7.1.230.0160.00815.92
7.1.220.0150.00714.63
7.1.210.0470.00814.67
7.1.200.0130.01414.80
7.1.190.0470.01314.81
7.1.180.0290.00514.85
7.1.170.0870.00314.78
7.1.160.0210.00514.99
7.1.150.0170.01214.83
7.1.140.0220.00514.72
7.1.130.0260.00914.90
7.1.120.0210.00714.89
7.1.110.1010.00514.88
7.1.100.0970.00914.88
7.1.90.0160.00614.98
7.1.80.0100.01114.72
7.1.70.0190.00914.92
7.1.60.0820.00823.78
7.1.50.0510.01124.03
7.1.40.0970.01123.88
7.1.30.0360.00823.85
7.1.20.0360.01223.81
7.1.10.0450.00614.65
7.1.00.0800.00914.89
7.0.330.0100.01515.57
5.6.400.0140.01714.32
5.6.390.0200.01014.52
5.6.380.0180.00514.09

preferences:
27.21 ms | 403 KiB | 5 Q