3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array( "Data" => "9", "Data Structure" => "10", "Database" => "11", "Creativity" => "12", "Forest" => "13", "Al Pacino" => "14", "Humans" => "15", "Technology" => "16" ); $post = array ('Database', 'Law', 'Tech', 'Creative'); $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) > .8 || $sim_chars/strlen($word) > .8) { $all_key_values[] = $num; $all_keys[] = $word; } elseif (fnmatch('*'.$keyword.'*', $word) || fnmatch('*'.$word.'*', $keyword) ) { $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.40.0100.01018.70
8.3.30.0100.00719.23
8.3.20.0000.00720.29
8.3.10.0040.00421.89
8.3.00.0080.00019.38
8.2.170.0120.00322.96
8.2.160.0140.00020.34
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0070.00726.16
8.2.120.0000.00822.17
8.2.110.0060.00322.24
8.2.100.0040.00817.84
8.2.90.0030.00519.35
8.2.80.0000.00817.97
8.2.70.0040.00717.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00819.96
8.2.30.0060.00319.82
8.2.20.0090.00017.64
8.2.10.0040.00418.24
8.2.00.0060.00317.68
8.1.270.0090.00022.11
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0080.00418.99
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00818.68
8.1.160.0000.00721.98
8.1.150.0000.00718.64
8.1.140.0000.00717.52
8.1.130.0030.00317.77
8.1.120.0000.00717.58
8.1.110.0020.00517.52
8.1.100.0000.00717.44
8.1.90.0050.00317.56
8.1.80.0000.00717.37
8.1.70.0070.00017.50
8.1.60.0000.00817.60
8.1.50.0000.00817.44
8.1.40.0040.00417.38
8.1.30.0000.00817.59
8.1.20.0000.00817.71
8.1.10.0090.00017.49
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0040.00417.30
8.0.280.0030.00518.50
8.0.270.0000.00717.34
8.0.260.0000.00617.27
8.0.250.0030.00316.82
8.0.240.0000.00617.07
8.0.230.0030.00316.86
8.0.220.0000.00716.96
8.0.210.0000.00716.88
8.0.200.0000.00817.03
8.0.190.0040.00416.95
8.0.180.0030.00317.02
8.0.170.0050.00316.86
8.0.160.0000.00816.78
8.0.150.0040.00416.82
8.0.140.0040.00416.92
8.0.130.0000.00513.39
8.0.120.0040.00416.77
8.0.110.0070.00016.94
8.0.100.0070.00016.78
8.0.90.0050.00216.83
8.0.80.0000.01516.95
8.0.70.0040.00416.90
8.0.60.0030.00316.85
8.0.50.0040.00416.92
8.0.30.0140.00817.11
8.0.20.0120.00617.40
8.0.10.0000.00717.11
8.0.00.0110.00716.86
7.4.330.0000.00615.00
7.4.320.0000.00716.67
7.4.300.0000.00716.61
7.4.290.0030.00316.40
7.4.280.0000.00716.44
7.4.270.0040.00416.64
7.4.260.0040.00416.66
7.4.250.0040.00416.42
7.4.240.0020.00616.59
7.4.230.0030.00316.52
7.4.220.0100.00916.56
7.4.210.0070.00916.71
7.4.200.0040.00416.70
7.4.190.0070.00016.41
7.4.160.0140.00316.31
7.4.150.0080.00817.40
7.4.140.0100.00717.86
7.4.130.0090.01016.52
7.4.120.0120.00516.49
7.4.110.0070.01016.34
7.4.100.0040.01616.29
7.4.90.0070.01016.37
7.4.80.0120.00619.39
7.4.70.0040.01516.54
7.4.60.0090.01216.59
7.4.50.0040.00416.59
7.4.40.0050.01516.38
7.4.30.0090.00616.58
7.4.00.0060.00914.93
7.3.330.0030.00313.20
7.3.320.0020.00213.23
7.3.310.0000.00816.19
7.3.300.0000.00716.38
7.3.290.0000.01516.43
7.3.280.0090.01016.36
7.3.270.0150.00317.40
7.3.260.0160.00616.84
7.3.250.0060.01516.41
7.3.240.0060.01016.48
7.3.230.0080.00816.48
7.3.210.0060.01116.50
7.3.200.0180.00319.39
7.3.190.0070.01016.29
7.3.180.0080.00816.51
7.3.170.0100.00616.46
7.3.160.0090.00616.57
7.3.120.0070.01015.12
7.3.10.0100.00716.48
7.3.00.0080.00316.66
7.2.330.0050.01316.77
7.2.320.0090.00916.68
7.2.310.0140.00416.70
7.2.300.0060.01016.62
7.2.290.0080.00916.50
7.2.130.0040.01216.47
7.2.120.0060.01216.83
7.2.110.0070.01017.06
7.2.100.0110.01116.74
7.2.90.0200.00616.52
7.2.80.0140.01016.86
7.2.70.0240.01016.83
7.2.60.0110.00616.95
7.2.50.0140.00716.61
7.2.40.0080.00816.68
7.2.30.0040.01116.96
7.2.20.0080.00816.95
7.2.10.0040.00816.73
7.2.00.0070.01018.16
7.1.250.0000.01415.78
7.1.100.0000.01218.07
7.1.70.0000.00917.14
7.1.60.0040.01819.46
7.1.50.0070.01416.96
7.1.00.0070.07022.54
7.0.200.0480.00314.39
7.0.140.0070.06322.01
7.0.60.0100.05720.07
7.0.50.0100.05317.91
7.0.40.0030.04320.12
7.0.30.0200.04020.19
7.0.20.0270.05720.27
7.0.10.0070.09019.97
7.0.00.0030.04720.24
5.6.280.0070.07021.14
5.6.210.0030.06720.53
5.6.200.0100.08018.22
5.6.190.0030.08720.43
5.6.180.0430.05320.61
5.6.170.0400.05720.38
5.6.160.0070.05320.50
5.6.150.0100.07318.18
5.6.140.0100.08018.14
5.6.130.0070.08018.23
5.6.120.0130.07721.18
5.6.110.0070.08020.99
5.6.100.0130.08020.93
5.6.90.0200.05321.06
5.6.80.0030.07020.49
5.5.350.0270.08320.47
5.5.340.0100.06718.01
5.5.330.0130.08020.12
5.5.320.1400.04320.30
5.5.310.0230.07720.17
5.5.300.0130.07318.03
5.5.290.0100.04017.92
5.5.280.0100.08020.92
5.5.270.0070.08720.99
5.5.260.0170.04720.72
5.5.250.0130.03320.72
5.5.240.0030.08020.07
5.4.450.0300.06319.21
5.4.440.0200.07019.41
5.4.430.0170.05719.54
5.4.420.0200.04319.13
5.4.410.0200.05019.50
5.4.400.0270.03018.92
5.4.390.0170.03719.10
5.4.380.0270.04019.24
5.4.370.0200.04019.16
5.4.360.0100.05019.09
5.4.350.0200.04019.31
5.4.340.0130.05019.06
5.4.320.0270.07018.93
5.4.310.0230.04318.88
5.4.300.0230.04019.08
5.4.290.0230.04018.91
5.4.280.0270.03319.06
5.4.270.0130.04318.77
5.4.260.0130.05319.27
5.4.250.0200.03318.92
5.4.240.0230.04319.21
5.4.230.0170.03718.80
5.4.220.0300.04019.18
5.4.210.0270.04319.07
5.4.200.0200.03318.80
5.4.190.0130.04019.32
5.4.180.0230.04319.15
5.4.170.0170.03718.92
5.4.160.0130.05319.05
5.4.150.0230.04318.86
5.4.140.0200.03316.52
5.4.130.0200.04316.43
5.4.120.0130.03716.26
5.4.110.0170.03716.19
5.4.100.0200.03316.39
5.4.90.0270.03716.40
5.4.80.0130.03716.20
5.4.70.0170.03716.39
5.4.60.0130.03716.21
5.4.50.0130.04016.44
5.4.40.0170.03716.17
5.4.30.0170.03316.36
5.4.20.0000.03716.34
5.4.10.0070.03316.17
5.4.00.1370.03315.71
5.3.290.2200.04714.69
5.3.280.2470.04014.46
5.3.270.2430.03714.47
5.3.260.2370.03314.56
5.3.250.2470.03714.64
5.3.240.2200.04014.45
5.3.230.2500.04314.45
5.3.220.2270.03014.75
5.3.210.1200.04014.42
5.3.200.0030.03714.42
5.3.190.0030.03714.63
5.3.180.1570.02714.59
5.3.170.2230.03714.41
5.3.160.2200.03714.48
5.3.150.2330.03014.62
5.3.140.2100.04014.61
5.3.130.2370.03314.57
5.3.120.2330.04014.60
5.3.110.2730.05014.41
5.3.100.2330.04013.89
5.3.90.1730.03713.88
5.3.80.0030.05313.97
5.3.70.0070.03313.98
5.3.60.2230.03314.03
5.3.50.2370.03313.82
5.3.40.2370.03314.01
5.3.30.2500.03313.78
5.3.20.2500.04013.61
5.3.10.2400.03313.71
5.3.00.2330.03013.50
5.2.170.1730.02711.16
5.2.160.1870.03011.09
5.2.150.1730.03711.39
5.2.140.0070.04711.16
5.2.130.0070.06011.23
5.2.120.0030.05711.26
5.2.110.1730.03710.95
5.2.100.2100.02711.26
5.2.90.2100.03010.98
5.2.80.1830.03010.94
5.2.70.2100.03711.06
5.2.60.2100.03310.93
5.2.50.2030.02710.86
5.2.40.1500.02710.86
5.2.30.1770.03010.93
5.2.20.1470.03010.80
5.2.10.1800.03010.95
5.2.00.2570.02310.70
5.1.60.1770.0309.90
5.1.50.1570.0279.88
5.1.40.1870.0279.88
5.1.30.1830.02310.27
5.1.20.1470.03010.44
5.1.10.1800.0309.98
5.1.00.1830.02710.14
5.0.50.0770.0208.66
5.0.40.1000.0278.43
5.0.30.0870.0338.18
5.0.20.0930.0238.22
5.0.10.0730.0208.17
5.0.00.0770.0278.26
4.4.90.0870.0238.07
4.4.80.0870.0138.07
4.4.70.0870.0178.07
4.4.60.0700.0278.07
4.4.50.0730.0208.07
4.4.40.0730.0278.07
4.4.30.0730.0178.07
4.4.20.0900.0208.07
4.4.10.0930.0178.07
4.4.00.1030.0278.07
4.3.110.0400.0178.07
4.3.100.0030.0178.07
4.3.90.0030.0208.07
4.3.80.0000.0238.07
4.3.70.0000.0178.07
4.3.60.0030.0138.07
4.3.50.0000.0238.07
4.3.40.0000.0238.07
4.3.30.0000.0178.07
4.3.20.0000.0408.07
4.3.10.0000.0278.07
4.3.00.0030.0178.07

preferences:
36.85 ms | 400 KiB | 5 Q