3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ "0×00" => "@", "0×01" => "£", "0×02" => "$", //... need to fill here all the table ]; function hexToGSM($hex,$array) { if(array_key_exists($hex,$array)) return $array[$hex]; else return null; } var_dump(hexToGSM("0×01",$array));

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.5.30.0090.00719.34
8.5.20.0090.00819.48
8.5.10.0100.00716.65
8.5.00.0110.01120.08
8.4.180.0140.00722.07
8.4.170.0120.01023.90
8.4.160.0120.01123.01
8.4.150.0050.00716.84
8.4.140.0140.00717.58
8.4.130.0130.00819.60
8.4.120.0100.01020.54
8.4.110.0100.01018.82
8.4.100.0120.00818.63
8.4.90.0040.00620.53
8.4.80.0060.00318.89
8.4.70.0110.00919.06
8.4.60.0120.00818.52
8.4.50.0110.00718.39
8.4.40.0150.00619.21
8.4.30.0130.00719.59
8.4.20.0130.00720.41
8.4.10.0170.00317.59
8.3.300.0120.00720.80
8.3.290.0140.00520.83
8.3.280.0130.00718.32
8.3.270.0100.00916.56
8.3.260.0120.00816.76
8.3.250.0050.01418.67
8.3.240.0060.00216.77
8.3.230.0110.00516.70
8.3.220.0050.00319.08
8.3.210.0120.00616.67
8.3.200.0080.00116.71
8.3.190.0130.00517.24
8.3.180.0100.00918.61
8.3.170.0100.01016.73
8.3.160.0170.00019.06
8.3.150.0110.00719.00
8.3.140.0140.00320.51
8.3.130.0100.01018.43
8.3.120.0060.00319.10
8.3.110.0060.00320.94
8.3.100.0100.00024.06
8.3.90.0070.00726.77
8.3.80.0060.00318.43
8.3.70.0070.01016.75
8.3.60.0090.00918.40
8.3.50.0100.00618.25
8.3.40.0070.00718.85
8.3.30.0140.00418.68
8.3.20.0000.00718.73
8.3.10.0040.00423.66
8.3.00.0070.00020.94
8.2.300.0090.01020.31
8.2.290.0110.00718.93
8.2.280.0050.00322.18
8.2.270.0110.00716.39
8.2.260.0120.00316.41
8.2.250.0070.01118.16
8.2.240.0040.00417.05
8.2.230.0120.00422.58
8.2.220.0000.00937.54
8.2.210.0090.00326.77
8.2.200.0030.00618.29
8.2.190.0030.02116.58
8.2.180.0100.01018.41
8.2.170.0110.00422.96
8.2.160.0130.00020.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.11
8.2.120.0030.00626.35
8.2.110.0030.00622.25
8.2.100.0100.00017.91
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0030.00617.63
8.2.50.0040.00518.10
8.2.40.0030.00720.83
8.2.30.0040.00419.16
8.2.20.0000.00718.29
8.2.10.0000.00718.00
8.2.00.0000.00819.36
8.1.340.0130.00917.75
8.1.330.0110.00716.13
8.1.320.0070.01215.96
8.1.310.0040.00416.26
8.1.300.0130.00618.19
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0030.00622.14
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.19
8.1.230.0080.00417.76
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0080.00019.01
8.1.180.0090.00018.10
8.1.170.0040.00418.55
8.1.160.0040.00418.86
8.1.150.0040.00418.73
8.1.140.0070.00022.05
8.1.130.0080.00020.09
8.1.120.0000.00717.34
8.1.110.0000.00817.42
8.1.100.0030.00717.45
8.1.90.0040.00417.40
8.1.80.0070.00017.28
8.1.70.0030.00317.43
8.1.60.0050.00317.47
8.1.50.0030.00917.41
8.1.40.0040.00417.45
8.1.30.0040.00417.54
8.1.20.0000.01117.64
8.1.10.0000.00817.37
8.1.00.0030.00517.42
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0030.00318.39
8.0.270.0070.00017.14
8.0.260.0030.00318.41
8.0.250.0000.00816.77
8.0.240.0040.00416.85
8.0.230.0000.00716.91
8.0.220.0040.00416.72
8.0.210.0000.00716.74
8.0.200.0040.00416.79
8.0.190.0030.00516.77
8.0.180.0000.00816.86
8.0.170.0070.00416.89
8.0.160.0050.00216.79
8.0.150.0060.00316.72
8.0.140.0070.00316.80
8.0.130.0050.00013.26
8.0.120.0000.00816.79
8.0.110.0000.00716.65
8.0.100.0070.00016.77
8.0.90.0040.00416.77
8.0.80.0100.01116.86
8.0.70.0040.00416.64
8.0.60.0040.00416.82
8.0.50.0030.00516.71
8.0.30.0130.00617.15
8.0.20.0090.01417.40
8.0.10.0070.00016.94
8.0.00.0150.01016.61
7.4.330.0050.00015.55
7.4.320.0060.00016.62
7.4.300.0030.00316.40
7.4.290.0000.00716.41
7.4.280.0000.00716.63
7.4.270.0000.00816.50
7.4.260.0000.00716.63
7.4.250.0030.00316.59
7.4.240.0070.00016.60
7.4.230.0070.00016.35
7.4.220.0070.00016.66
7.4.210.0050.01016.58
7.4.200.0000.00716.36
7.4.160.0090.00816.56
7.4.140.0110.00817.86
7.4.130.0090.01216.52
7.4.120.0070.01316.54
7.4.110.0160.00316.41
7.4.100.0060.01216.52
7.4.90.0180.00616.60
7.4.80.0030.01419.39
7.4.70.0160.00016.49
7.4.60.0000.01916.55
7.4.50.0030.01316.57
7.4.40.0040.01216.62
7.4.00.0090.00915.02
7.3.330.0050.00013.19
7.3.320.0000.00613.25
7.3.310.0000.00716.22
7.3.300.0050.00316.12
7.3.290.0000.00716.20
7.3.280.0030.01316.16
7.3.260.0090.00916.49
7.3.240.0070.01016.35
7.3.230.0070.01016.24
7.3.210.0040.01216.46
7.3.200.0100.00716.20
7.3.190.0070.01416.26
7.3.180.0100.00716.46
7.3.170.0120.00616.37
7.3.160.0030.01316.38
7.2.330.0030.01916.76
7.2.320.0070.01016.68
7.2.310.0130.00316.65
7.2.300.0080.00816.46
7.2.290.0140.00216.67
7.2.120.0210.00915.53
7.2.110.0160.00715.57
7.2.100.0180.00415.43
7.2.90.0410.00815.53
7.2.80.0250.00715.47
7.2.70.0310.00815.86
7.2.60.0420.00515.71
7.2.50.0230.00715.93
7.2.40.0300.01115.93
7.2.30.0230.00915.67
7.2.20.0330.00815.81
7.2.10.0300.00515.66
7.2.00.0170.01015.82
7.1.240.0110.01314.82
7.1.230.0270.00714.78
7.1.220.0200.00814.75
7.1.210.0650.00214.77
7.1.200.0350.00314.73
7.1.190.0190.00814.81
7.1.180.0240.00414.59
7.1.170.0190.00714.81
7.1.160.0230.00914.67
7.1.150.0290.00814.73
7.1.140.0340.00714.73
7.1.130.0190.00914.67
7.1.120.0250.00914.68
7.1.110.0240.00314.65
7.1.100.0310.01214.80
7.1.90.0190.00714.91
7.1.80.0210.00814.79
7.1.70.0280.00314.64
7.1.60.0270.00714.75
7.1.50.0820.00614.75
7.1.40.0340.01414.74
7.1.30.0470.01014.87
7.1.20.0280.01114.84
7.1.10.0350.00514.84
7.1.00.0260.00814.81
5.6.380.0060.00914.18

preferences:
46.6 ms | 1444 KiB | 5 Q