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.01416.50
8.3.50.0140.01421.95
8.3.40.0100.01018.97
8.3.30.0080.00819.05
8.3.20.0000.00720.30
8.3.10.0050.00323.48
8.3.00.0080.00019.25
8.2.180.0080.01118.41
8.2.170.0120.00322.96
8.2.160.0140.00020.39
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0100.00726.16
8.2.120.0070.00022.25
8.2.110.0090.00022.25
8.2.100.0100.00318.03
8.2.90.0040.00419.27
8.2.80.0000.00818.05
8.2.70.0080.00317.63
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0000.00819.94
8.2.30.0040.00419.96
8.2.20.0000.00817.82
8.2.10.0000.00818.04
8.2.00.0060.00317.80
8.1.280.0000.01425.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0060.00323.91
8.1.230.0130.00019.04
8.1.220.0050.00217.74
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0040.00417.23
8.1.180.0070.00319.01
8.1.170.0030.00518.53
8.1.160.0040.00422.07
8.1.150.0030.00618.69
8.1.140.0000.00717.52
8.1.130.0030.00317.73
8.1.120.0040.00417.40
8.1.110.0000.00817.48
8.1.100.0040.00417.46
8.1.90.0070.00017.45
8.1.80.0080.00017.50
8.1.70.0000.00717.45
8.1.60.0040.00417.51
8.1.50.0050.00317.56
8.1.40.0040.00417.52
8.1.30.0030.00517.56
8.1.20.0050.00317.72
8.1.10.0050.00317.55
8.1.00.0040.00417.34
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0070.00018.36
8.0.270.0000.00716.84
8.0.260.0050.00217.19
8.0.250.0030.00316.92
8.0.240.0050.00216.98
8.0.230.0070.00016.94
8.0.220.0070.00016.89
8.0.210.0040.00416.92
8.0.200.0040.00416.90
8.0.190.0040.00416.89
8.0.180.0050.00216.84
8.0.170.0050.00316.90
8.0.160.0000.00716.92
8.0.150.0070.00016.73
8.0.140.0000.00816.83
8.0.130.0000.00613.32
8.0.120.0040.00416.75
8.0.110.0050.00316.86
8.0.100.0070.00016.88
8.0.90.0040.00417.02
8.0.80.0060.00916.86
8.0.70.0020.00516.77
8.0.60.0000.00716.88
8.0.50.0070.00016.79
8.0.30.0120.00817.06
8.0.20.0100.01017.40
8.0.10.0050.00316.81
8.0.00.0100.00816.77
7.4.330.0000.00415.00
7.4.320.0030.00316.51
7.4.300.0030.00316.50
7.4.290.0000.00716.57
7.4.280.0030.00316.60
7.4.270.0000.00716.43
7.4.260.0030.00616.51
7.4.250.0040.00416.42
7.4.240.0020.00516.52
7.4.230.0000.00716.67
7.4.220.0130.00716.55
7.4.210.0050.01216.52
7.4.200.0040.00416.60
7.4.190.0030.00316.46
7.4.160.0160.00316.53
7.4.150.0090.00817.40
7.4.140.0100.00717.86
7.4.130.0120.00616.46
7.4.120.0080.00916.46
7.4.110.0040.01216.50
7.4.100.0070.01016.68
7.4.90.0130.01016.55
7.4.80.0100.01019.39
7.4.70.0140.00416.71
7.4.60.0030.01116.55
7.4.50.0000.00716.37
7.4.40.0090.00816.57
7.4.30.0100.00616.51
7.4.00.0000.01014.77
7.3.330.0070.00013.33
7.3.320.0030.00313.16
7.3.310.0040.00416.26
7.3.300.0000.00716.22
7.3.290.0030.01616.32
7.3.280.0100.01116.28
7.3.270.0030.01317.40
7.3.260.0160.00716.53
7.3.250.0090.00916.46
7.3.240.0120.00616.41
7.3.230.0120.00316.56
7.3.210.0150.00416.34
7.3.200.0100.01319.39
7.3.190.0110.00716.66
7.3.180.0130.00316.29
7.3.170.0120.00416.51
7.3.160.0060.00916.35
7.3.120.0140.00314.87
7.2.330.0130.00616.45
7.2.320.0180.00016.66
7.2.310.0070.01616.46
7.2.300.0110.00616.40
7.2.290.0100.00716.45
7.2.60.0000.01516.84
7.1.200.0030.00815.68
7.1.100.0040.01418.15
7.1.70.0040.00417.07
7.1.60.0030.00919.46
7.1.50.0130.01016.63
7.1.00.0030.07322.57
7.0.200.0300.01014.57
7.0.140.0000.07722.07
7.0.60.0000.07720.03
7.0.50.0030.06017.89
7.0.40.0030.04320.02
7.0.30.0200.08020.09
7.0.20.0170.04320.09
7.0.10.0100.05719.99
7.0.00.0100.08020.12
5.6.280.0030.07320.90
5.6.210.0070.07720.70
5.6.200.0070.04718.13
5.6.190.0100.08020.48
5.6.180.0430.06720.58
5.6.170.0330.04320.49
5.6.160.0000.09020.48
5.6.150.0000.08718.08
5.6.140.0070.04318.21
5.6.130.0130.06718.16
5.6.120.0000.05020.98
5.6.110.0100.07720.96
5.6.100.0070.08321.08
5.6.90.0000.09020.98
5.6.80.0070.07720.43
5.5.350.3100.03320.31
5.5.340.0070.05718.00
5.5.330.0070.04020.21
5.5.320.0230.05020.29
5.5.310.0200.04320.31
5.5.300.0030.08317.98
5.5.290.0070.08017.97
5.5.280.0070.05720.88
5.5.270.0130.07720.87
5.5.260.0100.08020.87
5.5.250.0100.07020.71
5.5.240.0030.04320.27
5.4.450.0670.05319.62
5.4.440.0830.06019.27
5.4.430.0170.04719.40
5.4.420.0670.05019.40
5.4.410.0770.05319.14
5.4.400.0870.05018.80
5.4.390.0330.06319.25
5.4.380.0270.06318.68
5.4.370.0400.04718.61
5.4.360.0300.05018.74
5.4.350.0200.07018.67
5.4.340.0400.05318.68
5.4.320.0060.04012.47
5.4.310.0100.04012.46
5.4.300.0040.04112.46
5.4.290.0120.03512.45
5.4.280.0090.03412.34
5.4.270.0080.04012.34
5.4.260.0130.05012.35
5.4.250.0120.05112.34
5.4.240.0110.04812.34
5.4.230.0070.05112.34
5.4.220.0150.04812.34
5.4.210.0140.04312.34
5.4.200.0100.05312.34
5.4.190.0100.05612.34
5.4.180.0090.06312.34
5.4.170.0110.05112.34
5.4.160.0120.04512.34
5.4.150.0090.03512.34
5.4.140.0040.03912.02
5.4.130.0070.03612.01
5.4.120.0110.03411.97
5.4.110.0090.05011.96
5.4.100.0090.04011.97
5.4.90.0100.05111.96
5.4.80.0180.07511.96
5.4.70.0060.05911.96
5.4.60.0100.03711.96
5.4.50.0130.05011.96
5.4.40.0120.04611.95
5.4.30.0120.05011.95
5.4.20.0090.05511.95
5.4.10.0080.06211.95
5.4.00.0090.05111.44
5.3.290.0060.04812.80
5.3.280.0110.05812.70
5.3.270.0110.05212.73
5.3.260.0110.05012.72
5.3.250.0120.05312.72
5.3.240.0100.05312.72
5.3.230.0080.04812.71
5.3.220.0070.04312.68
5.3.210.0070.04312.68
5.3.200.0080.04112.68
5.3.190.0090.05212.68
5.3.180.0080.03712.68
5.3.170.0070.04012.67
5.3.160.0050.05312.67
5.3.150.0070.05012.68
5.3.140.0110.03312.66
5.3.130.0060.04312.66
5.3.120.0060.04312.66
5.3.110.0120.04312.66
5.3.100.0090.03612.12
5.3.90.0050.03812.08
5.3.80.0050.05312.07
5.3.70.0090.04212.08
5.3.60.0040.03912.06
5.3.50.0060.03712.00
5.3.40.0070.03612.00
5.3.30.0040.05311.96
5.3.20.0040.03811.74
5.3.10.0040.03711.71
5.3.00.0060.04411.69
5.2.170.0080.0439.19
5.2.160.0060.0299.19
5.2.150.0070.0399.20
5.2.140.0090.0499.19
5.2.130.0050.0479.15
5.2.120.0050.0439.15
5.2.110.0060.0319.16
5.2.100.0060.0319.15
5.2.90.0050.0329.16
5.2.80.0040.0329.15
5.2.70.0070.0349.15
5.2.60.0070.0299.10
5.2.50.0060.0409.07
5.2.40.0150.0609.04
5.2.30.0060.0329.02
5.2.20.0050.0309.01
5.2.10.0100.0238.93
5.2.00.0060.0358.80
5.1.60.0050.0248.07
5.1.50.0030.0278.07
5.1.40.0060.0238.05
5.1.30.0070.0268.41
5.1.20.0080.0408.43
5.1.10.0060.0348.15
5.1.00.0070.0398.15
5.0.50.0030.0336.63
5.0.40.0110.0336.50
5.0.30.0100.0486.30
5.0.20.0080.0286.30
5.0.10.0080.0306.28
5.0.00.0100.0426.27
4.4.90.0040.0224.78
4.4.80.0040.0174.75
4.4.70.0040.0154.76
4.4.60.0020.0174.76
4.4.50.0030.0164.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0070.0124.85
4.4.00.0050.0264.76
4.3.110.0030.0164.67
4.3.100.0040.0154.67
4.3.90.0020.0234.64
4.3.80.0030.0264.58
4.3.70.0020.0164.63
4.3.60.0020.0164.62
4.3.50.0060.0154.63
4.3.40.0020.0354.53
4.3.30.0050.0153.33
4.3.20.0030.0173.30
4.3.10.0020.0163.26
4.3.00.0030.02010.55

preferences:
35.93 ms | 401 KiB | 5 Q