3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "66b3b0d86b56dfca4c8ca3e883700ac6"; $key = str2hex_array($key); print_r($key); function str2hex_array($str){ $str_arr = str_split(strToUpper($str), 2); //$str_hex = array(); $str_hex = ""; for ($i=0; $i < count($str_arr); $i++){ $ord1 = ord($str_arr[$i][0])-48; $ord2 = ord($str_arr[$i][1])-48; if ($ord1 > 16) $ord1 = $ord1 - 7; if ($ord2 > 16) $ord2 = $ord2 - 7; $str_hex[$i] = $ord1 * 16 + $ord2; } return $str_hex; }

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.0100.00622.42
8.4.110.0130.00918.63
8.4.100.0070.00218.13
8.4.90.0090.01122.53
8.4.80.0110.01020.50
8.4.70.0120.00818.73
8.4.60.0070.00320.57
8.4.50.0130.00820.42
8.4.40.0040.00417.95
8.4.30.0090.01018.00
8.4.20.0080.00419.81
8.4.10.0040.00717.74
8.3.250.0130.00618.63
8.3.240.0120.00816.68
8.3.230.0140.00616.56
8.3.220.0060.00719.05
8.3.210.0120.00818.63
8.3.200.0030.00516.53
8.3.190.0050.00517.19
8.3.180.0130.00616.86
8.3.170.0140.00317.35
8.3.160.0150.00619.00
8.3.150.0000.00816.77
8.3.140.0070.01118.78
8.3.130.0040.00416.98
8.3.120.0090.00920.76
8.3.110.0040.00420.94
8.3.100.0080.00018.71
8.3.90.0070.01116.85
8.3.80.0000.01017.97
8.3.70.0090.00618.43
8.3.60.0160.00018.56
8.3.50.0140.00617.37
8.3.40.0110.00718.88
8.3.30.0070.00718.82
8.3.20.0040.00421.81
8.3.10.0080.00023.55
8.3.00.0040.00423.70
8.2.290.0080.01117.03
8.2.280.0100.00918.65
8.2.270.0130.00717.18
8.2.260.0110.00418.46
8.2.250.0070.01117.46
8.2.240.0030.00617.34
8.2.230.0080.00022.58
8.2.220.0000.00924.06
8.2.210.0040.00426.77
8.2.200.0090.00018.54
8.2.190.0110.00716.63
8.2.180.0090.00916.78
8.2.170.0000.01422.96
8.2.160.0100.00420.47
8.2.150.0080.00024.18
8.2.140.0080.00324.66
8.2.130.0040.00421.07
8.2.120.0000.00826.35
8.2.110.0080.00421.11
8.2.100.0140.00017.93
8.2.90.0080.00017.84
8.2.80.0030.00618.04
8.2.70.0060.00317.93
8.2.60.0000.00817.63
8.2.50.0000.00918.10
8.2.40.0040.00420.47
8.2.30.0080.00022.38
8.2.20.0070.00018.21
8.2.10.0070.00018.06
8.2.00.0040.00418.26
8.1.330.0160.00416.16
8.1.320.0040.00418.04
8.1.310.0030.00518.45
8.1.300.0060.01317.73
8.1.290.0060.00318.88
8.1.280.0120.00325.92
8.1.270.0000.00823.79
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.21
8.1.230.0080.00322.74
8.1.220.0030.00617.74
8.1.210.0040.00418.91
8.1.200.0110.00317.00
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0080.00018.82
8.1.150.0000.00720.29
8.1.140.0040.00417.67
8.1.130.0040.00418.96
8.1.120.0070.00017.43
8.1.110.0050.00317.37
8.1.100.0000.00817.48
8.1.90.0050.00217.51
8.1.80.0040.00417.51
8.1.70.0000.00717.53
8.1.60.0060.00617.61
8.1.50.0030.00617.43
8.1.40.0060.00317.56
8.1.30.0030.00517.57
8.1.20.0080.00017.66
8.1.10.0000.00817.59
8.1.00.0040.00417.54
8.0.300.0040.00419.63
8.0.290.0060.00316.75
8.0.280.0000.00718.39
8.0.270.0000.00817.29
8.0.260.0030.00316.91
8.0.250.0030.00316.89
8.0.240.0050.00317.09
8.0.230.0030.00317.11
8.0.220.0040.00416.83
8.0.210.0030.00516.99
8.0.200.0000.00817.02
8.0.190.0030.00717.04
8.0.180.0000.00716.89
8.0.170.0080.00017.03
8.0.160.0000.00716.88
8.0.150.0000.00717.01
8.0.140.0030.00316.96
8.0.130.0000.00613.39
8.0.120.0000.00816.94
8.0.110.0000.00717.00
8.0.100.0000.00816.93
8.0.90.0050.00216.93
8.0.80.0150.00617.01
8.0.70.0040.00416.91
8.0.60.0040.00417.00
8.0.50.0040.00316.85
8.0.30.0080.00917.18
8.0.20.0050.01417.40
8.0.10.0040.00417.04
8.0.00.0070.01216.86
7.4.330.0030.00315.55
7.4.320.0060.00016.67
7.4.300.0060.00016.61
7.4.290.0000.00716.65
7.4.280.0070.00016.62
7.4.270.0000.00716.53
7.4.260.0000.00716.48
7.4.250.0050.00316.59
7.4.240.0000.00716.54
7.4.230.0040.00416.63
7.4.220.0050.00316.65
7.4.210.0140.00416.63
7.4.200.0030.00416.64
7.4.160.0100.00916.54
7.4.140.0130.00717.86
7.4.130.0060.01016.54
7.4.120.0090.01216.52
7.4.110.0100.00616.71
7.4.100.0070.01016.46
7.4.90.0160.00316.59
7.4.80.0120.00819.39
7.4.70.0130.00916.56
7.4.60.0080.00816.45
7.4.50.0000.01716.59
7.4.40.0030.01516.61
7.4.00.0090.00614.85
7.3.330.0000.00713.31
7.3.320.0000.00613.36
7.3.310.0000.00816.49
7.3.300.0070.00016.40
7.3.290.0060.00916.41
7.3.280.0060.01016.42
7.3.260.0090.00916.45
7.3.250.0130.00616.54
7.3.240.0090.00816.41
7.3.230.0070.01016.33
7.3.210.0060.01616.55
7.3.200.0120.00916.53
7.3.190.0090.00616.36
7.3.180.0000.01616.48
7.3.170.0130.00716.68
7.3.160.0110.00416.62
7.2.330.0090.00916.71
7.2.320.0170.00016.86
7.2.310.0100.01316.71
7.2.300.0130.00516.49
7.2.290.0030.01416.76
7.2.60.0090.00317.01
7.2.30.0090.01217.78
7.2.20.0110.01518.12
7.2.10.0100.01117.75
7.2.00.0140.01117.93
7.1.200.0120.00015.46
7.1.150.0130.01516.70
7.1.140.0130.01116.53
7.1.130.0080.01316.59
7.1.120.0100.00916.89
7.1.110.0110.00716.27
7.1.100.0100.01016.02
7.1.90.0080.01416.29
7.1.80.0090.01016.23
7.1.70.0070.01215.43
7.1.60.0360.01433.28
7.1.50.0280.01432.90
7.1.40.0300.01632.84
7.1.30.0250.01332.70
7.1.20.0290.01432.82
7.1.10.0060.01214.73
7.1.00.0080.01014.77

preferences:
118.42 ms | 403 KiB | 5 Q