3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = "password"; $key = mb_convert_encoding($secret,'utf-16le'); $secret = md5(utf8_encode($key), true); $secret .= substr($secret,0,8); return $secret;

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.00416.50
8.3.50.0120.00618.06
8.3.40.0090.00618.67
8.3.30.0070.00718.67
8.3.20.0040.00420.34
8.3.10.0050.00221.62
8.3.00.0040.00419.57
8.2.180.0100.01018.53
8.2.170.0100.01022.96
8.2.160.0070.00718.73
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00318.82
8.2.110.0030.00720.75
8.2.100.0110.00018.16
8.2.90.0030.00617.99
8.2.80.0040.00418.03
8.2.70.0000.00918.04
8.2.60.0030.00717.93
8.2.50.0080.00018.10
8.2.40.0030.00522.18
8.2.30.0090.00019.30
8.2.20.0020.00518.18
8.2.10.0000.00718.12
8.2.00.0040.00418.11
8.1.280.0070.00725.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0100.01028.09
8.1.240.0050.00521.88
8.1.230.0080.00322.76
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0040.00417.36
8.1.180.0000.00918.10
8.1.170.0050.00218.66
8.1.160.0070.00019.00
8.1.150.0080.00018.84
8.1.140.0040.00419.57
8.1.130.0050.00317.44
8.1.120.0030.00317.48
8.1.110.0000.00717.34
8.1.100.0040.00417.36
8.1.90.0000.00717.41
8.1.80.0000.00717.38
8.1.70.0070.00017.45
8.1.60.0050.00317.61
8.1.50.0030.00617.38
8.1.40.0000.00717.37
8.1.30.0030.00517.54
8.1.20.0000.00817.68
8.1.10.0040.00417.54
8.1.00.0000.00817.46
8.0.300.0000.00819.64
8.0.290.0030.00616.75
8.0.280.0000.00718.43
8.0.270.0030.00317.30
8.0.260.0030.00316.66
8.0.250.0050.00316.91
8.0.240.0030.00316.84
8.0.230.0000.00916.92
8.0.220.0080.00016.78
8.0.210.0030.00316.78
8.0.200.0050.00316.86
8.0.190.0020.00516.96
8.0.180.0050.00216.90
8.0.170.0030.00316.73
8.0.160.0000.00716.85
8.0.150.0040.00416.83
8.0.140.0070.00016.88
8.0.130.0060.00013.24
8.0.120.0040.00416.86
8.0.110.0000.00816.99
8.0.100.0000.00716.82
8.0.90.0040.00416.82
8.0.80.0030.01316.78
8.0.70.0040.00416.95
8.0.60.0000.00816.84
8.0.50.0000.00716.91
8.0.30.0100.00717.02
8.0.20.0070.01117.40
8.0.10.0040.00417.05
8.0.00.0100.00716.74
7.4.330.0050.00015.55
7.4.320.0060.00016.48
7.4.300.0030.00316.64
7.4.290.0030.00316.41
7.4.280.0020.00516.44
7.4.270.0070.00016.59
7.4.260.0030.00316.50
7.4.250.0030.00316.47
7.4.240.0030.00316.62
7.4.230.0000.00716.48
7.4.220.0030.01416.60
7.4.210.0070.01016.48
7.4.200.0000.00716.62
7.4.160.0110.00816.48
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0130.00616.39
7.4.120.0120.00816.38
7.4.110.0100.00616.59
7.4.100.0160.00616.24
7.4.90.0090.00916.61
7.4.80.0090.01419.39
7.4.70.0060.00916.49
7.4.60.0060.00916.26
7.4.50.0070.00716.32
7.4.40.0140.00316.43
7.4.30.0150.00416.46
7.4.00.0040.01114.77
7.3.330.0000.00513.14
7.3.320.0030.00312.96
7.3.310.0000.00716.21
7.3.300.0000.00716.06
7.3.290.0070.00016.05
7.3.280.0090.00916.18
7.3.270.0070.01117.40
7.3.260.0110.00616.25
7.3.250.0120.01016.31
7.3.240.0140.00416.27
7.3.230.0060.01216.23
7.3.210.0130.01016.24
7.3.200.0030.01316.21
7.3.190.0070.01016.43
7.3.180.0070.01016.32
7.3.170.0150.00016.16
7.3.160.0120.00316.07
7.2.330.0090.00916.38
7.2.320.0070.01716.59
7.2.310.0130.01016.52
7.2.300.0190.00616.46
7.2.290.0000.01716.52
7.2.60.0040.00916.60
7.1.200.0120.00015.88
7.1.70.0100.00717.32
7.1.60.0140.01435.09
7.1.50.0240.01534.91
7.1.40.0170.01334.28
7.1.30.0190.01334.51
7.1.20.0160.02034.55
7.1.10.0030.01216.80
7.1.00.0060.01216.81
7.0.200.0060.00916.74
7.0.190.0030.01016.71
7.0.180.0100.01016.13
7.0.170.0090.00616.20
7.0.160.0090.00916.18
7.0.150.0030.01916.29
7.0.140.0110.01116.35
7.0.130.0160.00016.57
7.0.120.0060.01116.74
7.0.110.0060.01116.28
7.0.100.0070.01116.48
7.0.90.0050.01016.34
7.0.80.0030.01716.37
7.0.70.0150.00316.27
7.0.60.0130.00616.04
7.0.50.0100.01216.31
7.0.40.0110.00816.41
7.0.30.0070.00716.49
7.0.20.0060.00916.65
7.0.10.0070.00716.48
7.0.00.0100.00416.44

preferences:
32.99 ms | 400 KiB | 5 Q