3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array( "Michigan" => "9", "Data Structure" => "10", "Database" => "11", "Creativity" => "12", "Forest" => "13", "Al Pacino" => "14", "Humans" => "15", "Technology" => "16" ); $post = array (Michigan, Delaware); $all_key_values = $all_keys = array(); foreach ($post as $keyword) { foreach ($list as $word=>$num) { $sim_chars = similar_text($keyword, $word); if ($sim_chars/strlen($keyword) ==1 && $sim_chars/strlen($word) ==1) { $all_key_values[] = $num; $all_keys[] = $word; } elseif (stripos($keyword, $word) !== false || strpos($word, $keyword) !== false) { $sll_key_values[] = $num; $all_keys[] = $word; } } } print_r(implode(',', $all_key_values)); echo "\n"; print_r(implode(',', $all_keys));

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.0170.00316.63
8.3.50.0120.00521.95
8.3.40.0140.00018.84
8.3.30.0100.00319.04
8.3.20.0070.00020.34
8.3.10.0110.00423.53
8.3.00.0090.00019.25
8.2.180.0090.00618.54
8.2.170.0070.01422.96
8.2.160.0140.00020.38
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0110.00326.16
8.2.120.0050.00222.26
8.2.110.0030.00620.85
8.2.100.0080.00417.78
8.2.90.0060.00319.05
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0000.00818.00
8.2.50.0060.00318.10
8.2.40.0070.00020.45
8.2.30.0040.00418.04
8.2.20.0030.00617.82
8.2.10.0000.00718.11
8.2.00.0000.00717.82
8.1.280.0090.00625.92
8.1.270.0080.00023.77
8.1.260.0120.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00620.88
8.1.230.0040.00717.64
8.1.220.0080.00017.77
8.1.210.0050.00318.77
8.1.200.0030.00717.47
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.48
8.1.160.0030.00522.07
8.1.150.0040.00418.63
8.1.140.0040.00417.42
8.1.130.0030.00317.79
8.1.120.0000.00717.45
8.1.110.0040.00417.46
8.1.100.0040.00417.37
8.1.90.0000.00717.52
8.1.80.0080.00017.36
8.1.70.0030.00317.35
8.1.60.0040.00417.50
8.1.50.0030.00617.47
8.1.40.0050.00217.35
8.1.30.0040.00417.61
8.1.20.0030.00617.64
8.1.10.0050.00317.61
8.1.00.0070.00017.59
8.0.300.0020.00518.77
8.0.290.0070.00016.63
8.0.280.0030.00518.45
8.0.270.0030.00317.28
8.0.260.0000.00717.17
8.0.250.0070.00016.91
8.0.240.0030.00317.02
8.0.230.0040.00417.03
8.0.220.0030.00316.99
8.0.210.0000.00816.98
8.0.200.0000.00617.07
8.0.190.0000.00817.03
8.0.180.0040.00416.87
8.0.170.0000.00816.92
8.0.160.0040.00317.02
8.0.150.0040.00416.97
8.0.140.0070.00016.93
8.0.130.0030.00513.36
8.0.120.0000.00816.96
8.0.110.0070.00016.96
8.0.100.0000.00716.79
8.0.90.0050.00216.92
8.0.80.0000.01516.99
8.0.70.0050.00316.98
8.0.60.0070.00016.82
8.0.50.0000.00716.96
8.0.30.0120.00617.09
8.0.20.0070.01117.40
8.0.10.0040.00416.94
8.0.00.0080.01116.76
7.4.330.0000.00515.00
7.4.320.0000.00716.46
7.4.300.0030.00316.52
7.4.290.0030.00316.59
7.4.280.0000.01116.63
7.4.270.0000.00716.61
7.4.260.0000.00716.58
7.4.250.0040.00416.59
7.4.240.0030.00516.52
7.4.230.0030.00316.41
7.4.220.0030.01516.52
7.4.210.0090.00516.64
7.4.200.0070.00016.41
7.4.190.0030.00316.61
7.4.160.0100.00616.52
7.4.150.0000.01817.40
7.4.140.0100.00717.86
7.4.130.0110.01016.44
7.4.120.0120.00416.52
7.4.110.0100.00716.61
7.4.100.0140.00616.68
7.4.90.0180.00416.67
7.4.80.0090.01519.39
7.4.70.0190.00316.45
7.4.60.0090.00916.48
7.4.50.0000.00916.54
7.4.40.0130.00616.25
7.4.30.0100.00516.53
7.4.00.0060.00914.99
7.3.330.0030.00313.26
7.3.320.0050.00013.33
7.3.310.0030.00316.41
7.3.300.0040.00416.20
7.3.290.0070.00716.45
7.3.280.0140.00516.43
7.3.270.0120.00617.40
7.3.260.0120.00616.49
7.3.250.0080.01116.52
7.3.240.0150.00616.36
7.3.230.0080.00816.59
7.3.210.0060.00916.50
7.3.200.0160.00619.39
7.3.190.0120.01216.45
7.3.180.0120.00316.43
7.3.170.0120.00316.54
7.3.160.0130.00316.54
7.3.120.0070.00014.92
7.2.330.0170.00716.36
7.2.320.0060.01216.50
7.2.310.0060.01516.46
7.2.300.0100.00616.72
7.2.290.0090.00916.54
7.2.60.0040.01216.80
7.2.00.0040.01119.46
7.1.200.0060.00915.96
7.1.100.0030.00717.99
7.1.70.0000.00717.32
7.1.60.0130.01319.46
7.1.50.0190.01216.89
7.1.00.0000.07722.43
7.0.200.0220.00614.96
7.0.140.0000.07321.95
7.0.60.0100.08020.01
7.0.50.0100.08017.82
7.0.40.0170.05320.24
7.0.30.0430.05720.09
7.0.20.0270.04320.04
7.0.10.0030.05320.09
7.0.00.0130.08020.16
5.6.280.0030.07320.79
5.6.210.0030.09020.74
5.6.200.0070.09018.09
5.6.190.0000.04720.60
5.6.180.0000.05020.35
5.6.170.0270.07320.46
5.6.160.0100.05020.47
5.6.150.0070.07718.21
5.6.140.0000.04318.15
5.6.130.0070.04318.12
5.6.120.0000.09321.10
5.6.110.0000.04320.98
5.6.100.0100.06720.99
5.6.90.0070.08721.00
5.6.80.0070.05720.40
5.5.350.0030.03320.41
5.5.340.0030.04317.89
5.5.330.0070.04020.28
5.5.320.0370.07020.29
5.5.310.0400.07020.20
5.5.300.0070.08017.98
5.5.290.0100.08017.92
5.5.280.0100.07020.78
5.5.270.0030.04020.80
5.5.260.0100.08720.73
5.5.250.0030.04020.59
5.5.240.0300.06020.29
5.4.450.0770.06719.46
5.4.440.0670.06719.62
5.4.430.0800.04319.45
5.4.420.0800.04719.46
5.4.410.0770.04719.48
5.4.400.1100.05719.25
5.4.390.0430.07019.27
5.4.380.0530.04018.73
5.4.370.0330.05018.66
5.4.360.0270.05718.59
5.4.350.0230.06018.69
5.4.340.0270.04718.69
5.4.320.0120.04412.46
5.4.310.0070.03712.46
5.4.300.0060.03712.47
5.4.290.0100.04612.45
5.4.280.0140.04412.35
5.4.270.0120.04612.35
5.4.260.0060.04212.34
5.4.250.0070.04112.35
5.4.240.0090.03712.34
5.4.230.0040.04312.34
5.4.220.0090.03712.34
5.4.210.0110.03812.34
5.4.200.0060.04212.34
5.4.190.0100.04612.34
5.4.180.0080.04112.33
5.4.170.0060.03912.35
5.4.160.0050.04012.34
5.4.150.0110.04712.34
5.4.140.0080.03612.02
5.4.130.0060.03712.01
5.4.120.0070.03511.96
5.4.110.0020.04111.96
5.4.100.0080.03711.96
5.4.90.0050.03911.96
5.4.80.0050.03811.96
5.4.70.0050.03711.96
5.4.60.0090.03511.96
5.4.50.0070.03811.96
5.4.40.0060.03611.95
5.4.30.0070.05611.95
5.4.20.0110.04811.95
5.4.10.0050.05211.95
5.4.00.0040.04411.43
5.3.290.0050.04012.80
5.3.280.0060.05012.71
5.3.270.0050.04012.72
5.3.260.0090.05212.72
5.3.250.0120.05412.72
5.3.240.0110.03712.71
5.3.230.0060.04612.71
5.3.220.0060.03812.68
5.3.210.0060.04012.68
5.3.200.0050.04012.68
5.3.190.0100.04112.68
5.3.180.0070.03612.68
5.3.170.0060.03812.67
5.3.160.0080.03712.67
5.3.150.0050.03912.67
5.3.140.0090.03712.66
5.3.130.0050.04112.66
5.3.120.0070.04312.66
5.3.110.0100.05112.66
5.3.100.0080.04612.12
5.3.90.0040.03912.08
5.3.80.0080.04212.07
5.3.70.0120.05712.08
5.3.60.0110.05912.07
5.3.50.0070.05312.00
5.3.40.0080.04912.00
5.3.30.0070.04511.96
5.3.20.0060.05511.73
5.3.10.0090.04311.70
5.3.00.0060.03711.69
5.2.170.0080.0429.20
5.2.160.0080.0439.19
5.2.150.0160.0289.19
5.2.140.0070.0299.19
5.2.130.0080.0379.15
5.2.120.0090.0279.15
5.2.110.0050.0299.16
5.2.100.0050.0299.15
5.2.90.0060.0309.16
5.2.80.0050.0459.15
5.2.70.0050.0339.15
5.2.60.0090.0289.10
5.2.50.0060.0319.07
5.2.40.0080.0419.04
5.2.30.0020.0389.02
5.2.20.0070.0359.01
5.2.10.0050.0298.93
5.2.00.0060.0298.80
5.1.60.0040.0288.07
5.1.50.0030.0268.07
5.1.40.0040.0258.05
5.1.30.0060.0248.41
5.1.20.0050.0278.43
5.1.10.0030.0288.15
5.1.00.0090.0378.15
5.0.50.0070.0236.64
5.0.40.0050.0276.50
5.0.30.0050.0326.31
5.0.20.0030.0216.28
5.0.10.0070.0266.25
5.0.00.0030.0356.25
4.4.90.0010.0184.78
4.4.80.0030.0164.76
4.4.70.0070.0154.76
4.4.60.0080.0174.75
4.4.50.0070.0194.77
4.4.40.0060.0364.71
4.4.30.0050.0224.76
4.4.20.0050.0184.84
4.4.10.0030.0214.85
4.4.00.0010.0284.76
4.3.110.0040.0204.67
4.3.100.0040.0194.66
4.3.90.0060.0124.64
4.3.80.0060.0324.58
4.3.70.0030.0234.63
4.3.60.0070.0224.63
4.3.50.0060.0134.63
4.3.40.0040.0244.54
4.3.30.0030.0193.30
4.3.20.0020.0183.27
4.3.10.0010.0183.23
4.3.00.0130.01310.55

preferences:
39.88 ms | 401 KiB | 5 Q