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 = fnmatch($keyword, $word); if ($sim_chars/strlen($keyword) > .8 || $sim_chars/strlen($word) > .8) { $all_key_values[] = $num; $all_keys[] = $word; } elseif (stripos($keyword, $word) !== false || strpos($word, $keyword) !== false) { $all_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.0110.00418.60
8.3.30.0060.00919.02
8.3.20.0050.00220.46
8.3.10.0000.00822.02
8.3.00.0080.00019.38
8.2.170.0120.00322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0000.00721.96
8.2.110.0060.00322.24
8.2.100.0110.00417.91
8.2.90.0000.00819.34
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00418.16
8.2.50.0000.00818.07
8.2.40.0000.00820.12
8.2.30.0000.00719.97
8.2.20.0040.00417.78
8.2.10.0040.00418.25
8.2.00.0040.00417.74
8.1.270.0000.00922.19
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0040.00423.88
8.1.230.0080.00419.04
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.01117.36
8.1.190.0030.00617.22
8.1.180.0030.00718.10
8.1.170.0040.00418.63
8.1.160.0040.00422.08
8.1.150.0000.00818.63
8.1.140.0000.00717.50
8.1.130.0030.00317.88
8.1.120.0040.00417.38
8.1.110.0000.00817.34
8.1.100.0040.00417.48
8.1.90.0040.00417.50
8.1.80.0050.00217.57
8.1.70.0070.00017.34
8.1.60.0060.00317.48
8.1.50.0050.00317.55
8.1.40.0000.00717.45
8.1.30.0000.00817.52
8.1.20.0050.00317.50
8.1.10.0050.00317.40
8.1.00.0020.00517.53
8.0.300.0040.00420.80
8.0.290.0040.00417.18
8.0.280.0030.00318.38
8.0.270.0030.00317.18
8.0.260.0060.00017.32
8.0.250.0000.00716.86
8.0.240.0000.00717.02
8.0.230.0040.00416.87
8.0.220.0040.00416.96
8.0.210.0030.00316.95
8.0.200.0000.00716.96
8.0.190.0050.00316.86
8.0.180.0040.00417.03
8.0.170.0030.00516.99
8.0.160.0000.00816.98
8.0.150.0050.00316.80
8.0.140.0070.00016.92
8.0.130.0030.00313.28
8.0.120.0000.00716.75
8.0.110.0040.00416.97
8.0.100.0060.00316.91
8.0.90.0040.00416.76
8.0.80.0140.00716.82
8.0.70.0000.00716.74
8.0.60.0020.00516.74
8.0.50.0040.00417.01
8.0.30.0090.01216.97
8.0.20.0110.00817.40
8.0.10.0070.00016.97
8.0.00.0080.00916.74
7.4.330.0050.00015.00
7.4.320.0060.00016.54
7.4.300.0070.00016.69
7.4.290.0000.00716.49
7.4.280.0000.00716.63
7.4.270.0020.00516.58
7.4.260.0030.00516.43
7.4.250.0040.00416.62
7.4.240.0030.00316.50
7.4.230.0000.00716.70
7.4.220.0070.01116.43
7.4.210.0080.00616.56
7.4.200.0000.00716.42
7.4.190.0030.00316.58
7.4.160.0110.01116.55
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0110.00916.52
7.4.120.0130.00516.47
7.4.110.0110.00616.50
7.4.100.0030.01416.52
7.4.90.0030.01416.52
7.4.80.0090.00819.39
7.4.70.0090.01216.60
7.4.60.0070.01016.49
7.4.50.0030.00616.63
7.4.40.0060.01516.52
7.4.30.0070.01016.41
7.4.10.0060.01315.20
7.4.00.0070.01014.72
7.3.330.0060.00013.32
7.3.320.0000.00513.05
7.3.310.0000.00716.10
7.3.300.0030.00316.33
7.3.290.0140.00616.42
7.3.280.0090.00916.36
7.3.270.0070.01017.40
7.3.260.0090.01516.46
7.3.250.0110.01316.52
7.3.240.0070.00916.48
7.3.230.0160.00316.63
7.3.210.0110.00616.63
7.3.200.0060.01719.39
7.3.190.0060.01616.69
7.3.180.0100.00716.46
7.3.170.0030.01316.45
7.3.160.0100.00616.43
7.3.130.0090.00914.77
7.3.120.0080.00814.96
7.3.110.0070.00714.81
7.3.100.0000.01115.01
7.3.90.0070.00714.91
7.3.80.0060.00914.78
7.3.70.0090.00314.75
7.3.60.0030.00715.09
7.3.50.0080.00414.85
7.3.40.0030.01014.89
7.3.30.0030.01014.80
7.3.20.0090.00316.75
7.3.10.0040.00816.69
7.3.00.0030.00716.60
7.2.330.0160.00716.85
7.2.320.0140.00316.65
7.2.310.0150.00316.53
7.2.300.0100.00616.57
7.2.290.0100.01016.57
7.2.260.0120.00615.19
7.2.250.0050.01214.97
7.2.240.0070.00715.21
7.2.230.0000.01415.04
7.2.220.0090.00615.06
7.2.210.0040.01115.02
7.2.200.0070.00415.03
7.2.190.0070.01014.96
7.2.180.0040.00415.07
7.2.170.0030.00915.08
7.2.160.0070.00714.88
7.2.150.0030.00917.05
7.2.140.0030.00616.99
7.2.130.0000.00917.18
7.2.120.0090.00616.82
7.2.110.0070.00716.96
7.2.100.0040.00416.87
7.2.90.0040.00816.95
7.2.80.0040.01117.03
7.2.70.0000.00916.89
7.2.60.0140.00417.05
7.2.50.0100.01016.84
7.2.40.0000.01117.10
7.2.30.0130.00317.13
7.2.20.0030.01216.84
7.2.10.0140.00416.93
7.2.00.0070.00716.94
7.1.330.0030.01015.42
7.1.320.0000.01415.88
7.1.310.0040.01115.56
7.1.300.0100.00716.06
7.1.290.0060.00315.92
7.1.280.0050.00515.79
7.1.270.0080.00415.80
7.1.260.0090.00315.84
7.1.250.0070.00315.52
7.1.240.0050.00515.98
7.1.230.0100.00315.77
7.1.220.0040.00815.79
7.1.210.0040.00815.64
7.1.200.0030.01016.01
7.1.190.0070.00715.84
7.1.180.0090.00615.54
7.1.170.0030.01115.91
7.1.160.0100.00315.93
7.1.150.0030.01315.72
7.1.140.0000.00915.64
7.1.130.0030.00715.90
7.1.120.0090.00315.90
7.1.110.0090.00016.00
7.1.100.0030.01017.00
7.1.90.0060.00615.97
7.1.80.0030.00915.79
7.1.70.0000.00916.32
7.1.60.0050.00917.68
7.1.50.0060.01216.43
7.1.40.0040.00715.76
7.1.30.0060.00815.78
7.1.20.0100.00015.93
7.1.10.0070.00715.82
7.1.00.0040.04218.98
7.0.330.0030.00915.28
7.0.320.0090.00615.38
7.0.310.0070.00715.11
7.0.300.0000.01715.48
7.0.290.0070.00415.34
7.0.280.0030.00715.55
7.0.270.0030.01015.50
7.0.260.0070.00715.39
7.0.250.0070.00715.24
7.0.240.0090.00615.36
7.0.230.0030.01015.40
7.0.220.0040.00715.34
7.0.210.0030.00915.57
7.0.200.0150.00315.03
7.0.190.0030.00815.62
7.0.180.0030.00715.29
7.0.170.0040.00715.44
7.0.160.0030.01015.65
7.0.150.0070.00715.18
7.0.140.0090.03618.79
7.0.130.0060.00315.59
7.0.120.0100.00615.32
7.0.110.0060.00615.57
7.0.100.0090.00615.36
7.0.90.0060.00615.55
7.0.80.0100.00315.27
7.0.70.0000.01215.42
7.0.60.0090.04017.68
7.0.50.0060.02316.55
7.0.40.0160.03616.76
7.0.30.0160.02316.70
7.0.20.0150.02216.77
7.0.10.0070.02216.83
7.0.00.0040.04516.68
5.6.400.0040.01214.32
5.6.390.0080.00314.44
5.6.380.0090.00614.39
5.6.370.0000.01314.86
5.6.360.0120.00314.49
5.6.350.0060.00614.59
5.6.340.0060.00614.16
5.6.330.0060.00614.21
5.6.320.0100.00314.05
5.6.310.0100.00314.11
5.6.300.0060.00614.66
5.6.290.0060.00914.46
5.6.280.0050.03817.75
5.6.270.0090.00414.61
5.6.260.0060.00614.46
5.6.250.0060.01014.28
5.6.240.0000.01114.55
5.6.230.0110.00014.36
5.6.220.0090.00614.35
5.6.210.0090.04417.63
5.6.200.0070.04616.51
5.6.190.0130.04217.49
5.6.180.0050.04417.41
5.6.170.0180.02517.46
5.6.160.0100.04217.52
5.6.150.0060.02516.25
5.6.140.0090.03016.32
5.6.130.0070.03416.32
5.6.120.0080.04217.88
5.6.110.0080.02017.75
5.6.100.0110.03817.85
5.6.90.0110.03917.83
5.6.80.0080.04017.28
5.6.70.0070.00714.22
5.6.60.0060.00614.12
5.6.50.0070.00714.39
5.6.40.0070.01014.32
5.6.30.0060.01214.39
5.6.20.0100.00714.27
5.6.10.0040.00414.24
5.6.00.0040.01114.41
5.5.380.0030.00914.40
5.5.370.0060.00914.64
5.5.360.0060.00914.48
5.5.350.0050.04617.51
5.5.340.0070.04316.19
5.5.330.0120.04317.41
5.5.320.0050.03117.51
5.5.310.0130.02917.42
5.5.300.0060.04816.07
5.5.290.0110.03616.26
5.5.280.0090.03217.63
5.5.270.0040.02317.60
5.5.260.0050.02817.50
5.5.250.0060.04017.52
5.5.240.0230.03017.20
5.5.230.0080.00814.38
5.5.220.0000.01514.27
5.5.210.0100.00714.13
5.5.200.0050.00514.52
5.5.190.0090.00614.27
5.5.180.0120.00614.25
5.5.170.0030.00614.41
5.5.160.0060.00914.13
5.5.150.0070.00214.40
5.5.140.0100.00314.09
5.5.130.0090.00314.51
5.5.120.0030.01014.29
5.5.110.0000.01514.25
5.5.100.0030.01014.57
5.5.90.0080.00814.41
5.5.80.0000.01314.47
5.5.70.0040.01114.69
5.5.60.0110.00414.13
5.5.50.0060.00314.41
5.5.40.0070.00714.15
5.5.30.0090.00614.41
5.5.20.0090.00314.51
5.5.10.0000.01114.29
5.5.00.0090.00314.08
5.4.450.0430.03115.13
5.4.440.0400.02815.11
5.4.430.0360.03015.09
5.4.420.0450.03315.38
5.4.410.0100.03315.26
5.4.400.0480.02715.05
5.4.390.0420.03915.10
5.4.380.0240.02714.77
5.4.370.0140.03314.67
5.4.360.0110.03114.71
5.4.350.0170.02814.80
5.4.340.0130.03214.89
5.4.330.0000.00811.32
5.4.320.0060.02011.84
5.4.310.0020.02411.79
5.4.300.0060.02011.74
5.4.290.0060.03111.70
5.4.280.0060.03211.67
5.4.270.0030.02811.85
5.4.260.0070.02611.79
5.4.250.0100.03011.77
5.4.240.0080.02311.66
5.4.230.0040.03311.73
5.4.220.0060.02511.63
5.4.210.0050.02311.72
5.4.200.0060.03011.79
5.4.190.0090.02511.73
5.4.180.0020.02311.63
5.4.170.0060.02011.58
5.4.160.0080.01811.76
5.4.150.0050.02911.76
5.4.140.0060.03011.69
5.4.130.0070.03211.60
5.4.120.0080.02211.48
5.4.110.0050.02611.44
5.4.100.0070.02711.42
5.4.90.0030.03211.43
5.4.80.0070.03111.50
5.4.70.0060.02111.58
5.4.60.0070.04211.58
5.4.50.0070.02611.64
5.4.40.0060.02911.42
5.4.30.0050.03111.44
5.4.20.0050.03011.56
5.4.10.0030.03711.44
5.4.00.0040.03111.13
5.3.290.0020.02311.71
5.3.280.0110.03611.63
5.3.270.0050.03811.69
5.3.260.0080.03511.57
5.3.250.0090.04011.73
5.3.240.0050.03211.52
5.3.230.0060.04111.65
5.3.220.0120.04611.58
5.3.210.0120.06011.58
5.3.200.0110.03011.48
5.3.190.0070.02811.57
5.3.180.0050.02311.68
5.3.170.0060.02111.65
5.3.160.0060.02011.68
5.3.150.0090.02411.65
5.3.140.0070.03311.49
5.3.130.0050.02411.58
5.3.120.0090.02811.52
5.3.110.0030.02911.59
5.3.100.0060.02411.38
5.3.90.0070.02911.42
5.3.80.0050.03911.27
5.3.70.0070.04011.29
5.3.60.0040.02611.33
5.3.50.0040.02411.13
5.3.40.0060.02711.19
5.3.30.0030.03811.14
5.3.20.0090.02611.15
5.3.10.0050.03610.93
5.3.00.0060.02310.96
5.2.170.0140.0989.20
5.2.160.0070.0349.21
5.2.150.0050.0439.21
5.2.140.0050.0389.20
5.2.130.0040.0319.16
5.2.120.0030.0349.16
5.2.110.0090.0679.17
5.2.100.0070.0399.16
5.2.90.0040.0449.16
5.2.80.0030.0329.16
5.2.70.0030.0349.16
5.2.60.0090.0369.11
5.2.50.0060.0589.08
5.2.40.0070.0459.06
5.2.30.0120.0369.04
5.2.20.0030.0339.02
5.2.10.0040.0318.95
5.2.00.0030.0338.80
5.1.60.0200.0648.09
5.1.50.0070.0328.09
5.1.40.0060.0318.07
5.1.30.0110.0278.42
5.1.20.0050.0298.44
5.1.10.0060.0288.16
5.1.00.0060.0248.16
5.0.50.0050.0216.64
5.0.40.0030.0216.50
5.0.30.0020.0346.32
5.0.20.0040.0206.32
5.0.10.0120.0446.29
5.0.00.0080.0486.29
4.4.90.0070.0244.78
4.4.80.0020.0174.76
4.4.70.0040.0214.76
4.4.60.0050.0134.75
4.4.50.0030.0184.77
4.4.40.0040.0354.71
4.4.30.0020.0174.76
4.4.20.0010.0184.84
4.4.10.0030.0164.85
4.4.00.0030.0274.76
4.3.110.0050.0544.67
4.3.100.0000.0604.67
4.3.90.0020.0224.64
4.3.80.0020.0294.59
4.3.70.0090.0184.63
4.3.60.0080.0314.63
4.3.50.0090.0394.63
4.3.40.0080.0434.54
4.3.30.0020.0263.34
4.3.20.0020.0413.32
4.3.10.0030.0153.28
4.3.00.0230.01710.55

preferences:
42.03 ms | 400 KiB | 5 Q