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 (strpos($keyword, $word) !== false || strpos($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.60.0030.01616.72
8.3.50.0150.00722.01
8.3.40.0100.01018.67
8.3.30.0070.01119.07
8.3.20.0070.00020.18
8.3.10.0060.00321.75
8.3.00.0080.00019.24
8.2.180.0040.01118.41
8.2.170.0070.00722.96
8.2.160.0000.01320.52
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.02
8.2.110.0070.00322.01
8.2.100.0070.00718.03
8.2.90.0030.00519.25
8.2.80.0030.00518.05
8.2.70.0070.00417.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0050.00320.07
8.2.30.0080.00019.97
8.2.20.0040.00417.66
8.2.10.0000.00818.01
8.2.00.0000.00917.69
8.1.280.0160.00725.92
8.1.270.0040.00423.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00323.91
8.1.230.0110.00019.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0110.00017.47
8.1.190.0060.00317.23
8.1.180.0030.00619.00
8.1.170.0060.00318.66
8.1.160.0000.00721.95
8.1.150.0040.00418.66
8.1.140.0050.00217.36
8.1.130.0070.00017.73
8.1.120.0000.00717.54
8.1.110.0000.00717.34
8.1.100.0040.00317.38
8.1.90.0040.00417.37
8.1.80.0000.00817.50
8.1.70.0000.00717.41
8.1.60.0040.00417.65
8.1.50.0050.00317.55
8.1.40.0080.00017.53
8.1.30.0030.00617.58
8.1.20.0030.00517.59
8.1.10.0040.00417.40
8.1.00.0050.00217.39
8.0.300.0030.00318.77
8.0.290.0000.00817.16
8.0.280.0000.00718.37
8.0.270.0030.00317.17
8.0.260.0070.00017.17
8.0.250.0000.00816.88
8.0.240.0060.00316.93
8.0.230.0070.00016.95
8.0.220.0000.00716.89
8.0.210.0000.00716.86
8.0.200.0040.00416.93
8.0.190.0000.00916.96
8.0.180.0040.00416.93
8.0.170.0000.00816.93
8.0.160.0040.00416.84
8.0.150.0050.00316.83
8.0.140.0040.00416.87
8.0.130.0000.00513.29
8.0.120.0060.00316.89
8.0.110.0000.00716.84
8.0.100.0040.00416.80
8.0.90.0040.00416.83
8.0.80.0080.00816.89
8.0.70.0040.00416.73
8.0.60.0070.00016.81
8.0.50.0000.00716.74
8.0.30.0110.01017.01
8.0.20.0110.00917.41
8.0.10.0070.00017.01
8.0.00.0020.01516.74
7.4.330.0000.00515.00
7.4.320.0000.00616.52
7.4.300.0000.00716.55
7.4.290.0000.00816.63
7.4.280.0030.00316.58
7.4.270.0040.00416.60
7.4.260.0070.00016.62
7.4.250.0080.00016.48
7.4.240.0050.00216.57
7.4.230.0000.00716.63
7.4.220.0060.01216.54
7.4.210.0080.00816.52
7.4.200.0030.00516.59
7.4.190.0030.00316.57
7.4.160.0060.00916.47
7.4.150.0130.00317.40
7.4.140.0120.00617.86
7.4.130.0050.01216.46
7.4.120.0130.00416.53
7.4.110.0100.00716.55
7.4.100.0090.00916.39
7.4.90.0110.00616.34
7.4.80.0090.00919.39
7.4.70.0070.01016.64
7.4.60.0060.00916.32
7.4.50.0060.00316.64
7.4.40.0160.00616.50
7.4.30.0060.00916.64
7.4.10.0130.00314.91
7.4.00.0030.01515.10
7.3.330.0000.00613.20
7.3.320.0050.00013.12
7.3.310.0000.00716.41
7.3.300.0030.00316.32
7.3.290.0120.00316.25
7.3.280.0080.00916.34
7.3.270.0120.00617.40
7.3.260.0110.00516.37
7.3.250.0050.01416.54
7.3.240.0090.00616.39
7.3.230.0120.00416.39
7.3.210.0070.01016.36
7.3.200.0090.00919.39
7.3.190.0070.01416.43
7.3.180.0130.00616.67
7.3.170.0060.01116.45
7.3.160.0120.01216.26
7.3.130.0070.01114.81
7.3.120.0060.00914.94
7.3.110.0090.00914.97
7.3.100.0100.00614.73
7.3.90.0120.00314.75
7.3.80.0030.01315.14
7.3.70.0030.00714.98
7.3.60.0000.00814.86
7.3.50.0130.00314.71
7.3.40.0040.00814.87
7.3.30.0060.00614.82
7.3.20.0040.00816.58
7.3.10.0090.00816.62
7.3.00.0100.00616.57
7.2.330.0070.01016.80
7.2.320.0130.01016.79
7.2.310.0100.00716.54
7.2.300.0030.01416.77
7.2.290.0090.00916.76
7.2.260.0070.01315.22
7.2.250.0040.01515.26
7.2.240.0070.00715.16
7.2.230.0040.01115.27
7.2.220.0030.01314.70
7.2.210.0150.00315.29
7.2.200.0040.01215.10
7.2.190.0040.00815.19
7.2.180.0040.00415.03
7.2.170.0030.01014.89
7.2.160.0030.00914.74
7.2.150.0080.00417.16
7.2.140.0060.00616.70
7.2.130.0090.00616.88
7.2.120.0050.01016.89
7.2.110.0060.01016.81
7.2.100.0110.00816.91
7.2.90.0110.00916.81
7.2.80.0040.01116.91
7.2.70.0070.00816.88
7.2.60.0110.00516.92
7.2.50.0050.00816.90
7.2.40.0070.01316.87
7.2.30.0040.00716.94
7.2.20.0130.00416.73
7.2.10.0090.00216.88
7.2.00.0090.00717.53
7.1.330.0040.01115.73
7.1.320.0090.00915.70
7.1.310.0050.00515.92
7.1.300.0030.01015.71
7.1.290.0070.00315.97
7.1.280.0050.00315.71
7.1.270.0030.00815.65
7.1.260.0070.00715.51
7.1.250.0090.00615.76
7.1.240.0030.01215.72
7.1.230.0060.00615.93
7.1.220.0040.01115.72
7.1.210.0080.00015.71
7.1.200.0000.01415.70
7.1.190.0110.00315.85
7.1.180.0100.00715.63
7.1.170.0030.01215.74
7.1.160.0030.00615.54
7.1.150.0090.00615.89
7.1.140.0080.00015.80
7.1.130.0050.00315.74
7.1.120.0030.00915.88
7.1.110.0030.01415.89
7.1.100.0100.00317.05
7.1.90.0090.00616.00
7.1.80.0000.01015.64
7.1.70.0020.01016.25
7.1.60.0060.00617.52
7.1.50.0090.00816.35
7.1.40.0110.00315.36
7.1.30.0000.01515.72
7.1.20.0030.00715.93
7.1.10.0000.01115.68
7.1.00.0070.04019.13
7.0.330.0040.01115.36
7.0.320.0070.00715.06
7.0.310.0060.00615.38
7.0.300.0000.01015.47
7.0.290.0040.01115.39
7.0.280.0030.01015.01
7.0.270.0060.00315.43
7.0.260.0000.01615.23
7.0.250.0000.01315.61
7.0.240.0040.00815.30
7.0.230.0070.00415.14
7.0.220.0000.01315.42
7.0.210.0120.00315.20
7.0.200.0130.01414.95
7.0.190.0060.00615.39
7.0.180.0040.01215.33
7.0.170.0000.01715.52
7.0.160.0000.01515.39
7.0.150.0060.00315.41
7.0.140.0050.03718.61
7.0.130.0040.00815.55
7.0.120.0030.00915.61
7.0.110.0000.01615.32
7.0.100.0070.00415.58
7.0.90.0000.01415.49
7.0.80.0040.00815.29
7.0.70.0000.01515.37
7.0.60.0040.04417.63
7.0.50.0070.02316.58
7.0.40.0020.03116.84
7.0.30.0150.02716.84
7.0.20.0200.04316.79
7.0.10.0000.05416.75
7.0.00.0030.02516.77
5.6.400.0000.00814.68
5.6.390.0070.01014.18
5.6.380.0060.00914.57
5.6.370.0030.00914.16
5.6.360.0030.01014.34
5.6.350.0040.01214.48
5.6.340.0000.01514.32
5.6.330.0060.00914.65
5.6.320.0030.00714.46
5.6.310.0070.00714.05
5.6.300.0030.01014.25
5.6.290.0070.00714.25
5.6.280.0070.00314.27
5.6.270.0080.00814.67
5.6.260.0030.00914.45
5.6.250.0070.01014.34
5.6.240.0000.01114.22
5.6.230.0030.01014.34
5.6.220.0070.00714.55
5.6.210.0100.02617.59
5.6.200.0050.04716.27
5.6.190.0070.03217.34
5.6.180.1750.03017.25
5.6.170.0150.04117.39
5.6.160.0070.04817.46
5.6.150.0120.03516.15
5.6.140.0100.03416.34
5.6.130.0070.04216.31
5.6.120.0070.04017.76
5.6.110.0060.04117.76
5.6.100.0060.04417.85
5.6.90.0100.04617.55
5.6.80.0000.03317.41
5.6.70.2330.02117.50
5.6.60.0120.00314.46
5.6.50.0040.00714.51
5.6.40.0030.01014.41
5.6.30.0030.00714.27
5.6.20.0070.00314.39
5.6.10.0040.01114.27
5.6.00.0120.00314.38
5.5.380.0040.00414.64
5.5.370.0100.00014.50
5.5.360.0000.01114.52
5.5.350.0130.04317.39
5.5.340.0080.04016.03
5.5.330.0050.03517.30
5.5.320.0100.04717.38
5.5.310.0080.02717.16
5.5.300.0100.04216.13
5.5.290.0020.02616.30
5.5.280.0110.01817.55
5.5.270.0030.02517.56
5.5.260.0120.03317.45
5.5.250.0170.03717.63
5.5.240.0170.04117.11
5.5.230.0030.00714.38
5.5.220.0050.00814.52
5.5.210.0030.01014.36
5.5.200.0000.01414.22
5.5.190.0040.00714.48
5.5.180.0040.01114.44
5.5.170.0150.00314.19
5.5.160.0110.00314.05
5.5.150.0030.01014.52
5.5.140.0080.00814.50
5.5.130.0030.01014.21
5.5.120.0130.00314.48
5.5.110.0030.01014.48
5.5.100.0030.00914.50
5.5.90.0130.00014.36
5.5.80.0070.01114.45
5.5.70.0040.01514.15
5.5.60.0000.01314.10
5.5.50.0090.00614.46
5.5.40.0070.00314.30
5.5.30.0060.00614.40
5.5.20.0070.00714.08
5.5.10.0050.00514.39
5.5.00.0060.00314.05
5.4.450.0420.03215.94
5.4.440.0400.03016.15
5.4.430.0120.03216.12
5.4.420.0200.03915.94
5.4.410.0370.02815.87
5.4.400.0130.02015.93
5.4.390.0380.04215.90
5.4.380.0230.02315.67
5.4.370.0100.03415.67
5.4.360.0170.03015.59
5.4.350.0150.03815.70
5.4.340.0180.03015.64
5.4.330.0040.00412.64
5.4.320.0020.02512.55
5.4.310.0040.02412.55
5.4.300.0080.02012.55
5.4.290.0090.03712.54
5.4.280.0070.03312.49
5.4.270.0080.02812.49
5.4.260.0080.03312.49
5.4.250.0150.04512.49
5.4.240.0140.03812.49
5.4.230.0090.03812.49
5.4.220.0120.05712.49
5.4.210.0060.04112.49
5.4.200.0100.04512.49
5.4.190.0060.03212.49
5.4.180.0080.03112.49
5.4.170.0080.03612.49
5.4.160.0090.03312.49
5.4.150.0070.05212.49
5.4.140.0060.04212.33
5.4.130.0190.03812.33
5.4.120.0070.03612.30
5.4.110.0130.04012.30
5.4.100.0070.03212.30
5.4.90.0040.03612.30
5.4.80.0060.04012.30
5.4.70.0090.04212.30
5.4.60.0070.02212.30
5.4.50.0090.03412.30
5.4.40.0150.03512.29
5.4.30.0130.04912.29
5.4.20.0080.02812.29
5.4.10.0080.03812.29
5.4.00.0060.02612.04
5.3.290.0050.02312.72
5.3.280.0060.02312.67
5.3.270.0020.02712.68
5.3.260.0070.01912.68
5.3.250.0050.02212.68
5.3.240.0040.02312.68
5.3.230.0030.02312.67
5.3.220.0090.02012.66
5.3.210.0060.02912.66
5.3.200.0050.02612.66
5.3.190.0040.02512.66
5.3.180.0060.02712.66
5.3.170.0040.02412.66
5.3.160.0060.02012.66
5.3.150.0060.02212.66
5.3.140.0030.02212.65
5.3.130.0040.02312.65
5.3.120.0040.02512.65
5.3.110.0060.02312.65
5.3.100.0040.02212.38
5.3.90.0070.02312.36
5.3.80.0050.03112.36
5.3.70.0040.02212.36
5.3.60.0060.02012.35
5.3.50.0030.03112.32
5.3.40.0060.02812.32
5.3.30.0040.02612.30
5.3.20.0080.02412.19
5.3.10.0040.02712.17
5.3.00.0030.02612.16
5.2.170.0080.0359.20
5.2.160.0040.0339.19
5.2.150.0050.0319.20
5.2.140.0050.0319.19
5.2.130.0040.0429.15
5.2.120.0080.0499.15
5.2.110.0050.0509.16
5.2.100.0070.0419.16
5.2.90.0040.0449.15
5.2.80.0040.0399.15
5.2.70.0060.0299.15
5.2.60.0050.0439.10
5.2.50.0040.0329.07
5.2.40.0090.0289.04
5.2.30.0110.0329.02
5.2.20.0100.0429.01
5.2.10.0070.0288.93
5.2.00.0050.0428.79
5.1.60.0040.0368.07
5.1.50.0030.0368.07
5.1.40.0040.0318.06
5.1.30.0080.0318.41
5.1.20.0070.0388.43
5.1.10.0030.0278.15
5.1.00.0030.0338.15
5.0.50.0020.0226.63
5.0.40.0050.0186.50
5.0.30.0060.0356.30
5.0.20.0060.0186.30
5.0.10.0050.0296.28
5.0.00.0050.0396.27
4.4.90.0020.0174.78
4.4.80.0040.0144.75
4.4.70.0010.0234.75
4.4.60.0040.0214.76
4.4.50.0040.0254.77
4.4.40.0050.0324.71
4.4.30.0020.0204.76
4.4.20.0050.0164.84
4.4.10.0040.0154.84
4.4.00.0020.0314.76
4.3.110.0040.0164.66
4.3.100.0040.0204.66
4.3.90.0030.0214.64
4.3.80.0070.0294.59
4.3.70.0050.0224.63
4.3.60.0030.0224.62
4.3.50.0020.0244.63
4.3.40.0040.0324.54
4.3.30.0040.0213.33
4.3.20.0000.0193.30
4.3.10.0030.0153.27
4.3.00.0170.03010.55

preferences:
41.49 ms | 401 KiB | 5 Q