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) > .7 || $sim_chars/strlen($word) > .7) { $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.60.0170.00316.88
8.3.50.0140.00522.06
8.3.40.0120.00918.83
8.3.30.0170.00319.02
8.3.20.0080.00020.34
8.3.10.0080.00023.52
8.3.00.0040.00419.48
8.2.180.0030.01216.63
8.2.170.0040.01122.96
8.2.160.0070.00720.47
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0060.00322.06
8.2.110.0090.00022.20
8.2.100.0040.00717.84
8.2.90.0040.00419.29
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00519.76
8.2.50.0040.00418.07
8.2.40.0040.00419.89
8.2.30.0040.00420.04
8.2.20.0080.00017.81
8.2.10.0000.00718.08
8.2.00.0060.00317.88
8.1.280.0100.01025.92
8.1.270.0030.00624.04
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.90
8.1.230.0080.00419.02
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0060.00317.23
8.1.180.0060.00319.07
8.1.170.0050.00320.16
8.1.160.0040.00422.00
8.1.150.0040.00418.55
8.1.140.0050.00217.39
8.1.130.0040.00417.73
8.1.120.0000.00717.54
8.1.110.0000.00717.37
8.1.100.0030.00417.36
8.1.90.0040.00417.47
8.1.80.0000.00717.39
8.1.70.0030.00317.34
8.1.60.0040.00417.70
8.1.50.0040.00417.42
8.1.40.0000.00817.43
8.1.30.0050.00317.68
8.1.20.0000.00717.51
8.1.10.0000.00817.45
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00417.30
8.0.280.0030.00518.51
8.0.270.0000.00717.34
8.0.260.0000.00817.19
8.0.250.0030.00317.01
8.0.240.0090.00017.02
8.0.230.0030.00316.93
8.0.220.0000.00816.96
8.0.210.0000.00616.97
8.0.200.0000.00716.91
8.0.190.0050.00316.92
8.0.180.0070.00016.81
8.0.170.0040.00416.80
8.0.160.0040.00416.73
8.0.150.0060.00316.81
8.0.140.0040.00416.91
8.0.130.0000.00513.32
8.0.120.0000.00816.94
8.0.110.0040.00416.90
8.0.100.0000.00716.75
8.0.90.0000.00716.72
8.0.80.0140.00016.86
8.0.70.0040.00416.95
8.0.60.0000.00716.97
8.0.50.0000.00716.87
8.0.30.0120.00717.26
8.0.20.0080.01317.40
8.0.10.0030.00517.11
8.0.00.0110.00716.87
7.4.330.0000.00615.00
7.4.320.0030.00316.67
7.4.300.0000.00716.59
7.4.290.0040.00416.46
7.4.280.0030.00316.58
7.4.270.0060.00316.52
7.4.260.0000.00816.45
7.4.250.0000.00816.61
7.4.240.0000.00716.59
7.4.230.0070.00016.40
7.4.220.0210.00316.59
7.4.210.0090.00616.56
7.4.200.0000.00716.78
7.4.190.0030.00316.57
7.4.160.0060.01616.56
7.4.150.0110.00717.40
7.4.140.0060.01317.86
7.4.130.0060.01016.71
7.4.120.0080.00816.56
7.4.110.0070.01016.30
7.4.100.0090.01416.51
7.4.90.0150.00316.32
7.4.80.0100.00719.39
7.4.70.0100.01016.58
7.4.60.0070.00916.62
7.4.50.0000.00916.39
7.4.40.0080.01316.20
7.4.30.0040.01216.67
7.4.10.0100.01016.00
7.4.00.0080.01015.59
7.3.330.0000.00613.06
7.3.320.0020.00313.17
7.3.310.0000.00716.24
7.3.300.0040.00416.41
7.3.290.0120.00916.38
7.3.280.0020.01316.33
7.3.270.0130.00317.40
7.3.260.0110.00816.50
7.3.250.0110.00816.44
7.3.240.0090.00616.67
7.3.230.0070.01716.61
7.3.210.0060.01116.38
7.3.200.0100.01019.39
7.3.190.0070.01016.59
7.3.180.0000.01616.32
7.3.170.0110.00616.67
7.3.160.0070.01016.67
7.3.130.0090.00916.00
7.3.120.0090.00915.48
7.3.110.0090.00315.60
7.3.100.0050.01215.57
7.3.90.0110.00515.55
7.3.80.0090.00715.40
7.3.70.0090.00615.44
7.3.60.0050.00915.46
7.3.50.0070.00715.47
7.3.40.0090.00615.53
7.3.30.0110.00115.43
7.3.20.0040.01116.67
7.3.10.0090.00516.65
7.3.00.0060.00816.70
7.2.330.0150.00916.85
7.2.320.0120.00616.75
7.2.310.0120.00616.56
7.2.300.0030.01916.41
7.2.290.0040.01816.72
7.2.260.0090.00916.00
7.2.250.0080.00816.00
7.2.240.0030.01215.57
7.2.230.0080.00915.42
7.2.220.0080.00515.64
7.2.210.0080.00315.52
7.2.200.0040.01415.55
7.2.190.0030.01415.55
7.2.180.0040.00815.56
7.2.170.0070.00715.62
7.2.160.0100.00315.52
7.2.150.0030.00917.00
7.2.140.0070.00817.00
7.2.130.0030.01216.95
7.2.120.0060.00716.84
7.2.110.0050.00917.03
7.2.100.0070.00817.02
7.2.90.0040.00616.88
7.2.80.0040.00916.88
7.2.70.0020.01217.00
7.2.60.0030.01017.00
7.2.50.0080.00616.93
7.2.40.0060.01116.96
7.2.30.0080.01017.08
7.2.20.0050.00816.96
7.2.10.0050.00917.00
7.2.00.0040.00917.63
7.1.330.0050.00915.81
7.1.320.0100.00616.04
7.1.310.0070.00815.94
7.1.300.0040.00915.90
7.1.290.0070.00915.89
7.1.280.0060.00915.87
7.1.270.0060.00915.90
7.1.260.0070.00415.91
7.1.250.0060.00715.94
7.1.240.0130.00316.00
7.1.230.0100.00316.00
7.1.220.0070.00716.01
7.1.210.0040.01116.00
7.1.200.0060.00916.00
7.1.190.0030.00916.00
7.1.180.0030.01016.00
7.1.170.0000.00916.00
7.1.160.0030.01316.00
7.1.150.0040.00716.00
7.1.140.0000.01316.00
7.1.130.0130.00316.00
7.1.120.0000.01616.00
7.1.110.0060.00616.00
7.1.100.0030.01017.11
7.1.90.0000.01116.00
7.1.80.0100.00316.00
7.1.70.0070.00316.63
7.1.60.0080.00317.73
7.1.50.0040.01616.32
7.1.40.0000.01016.00
7.1.30.0000.01016.00
7.1.20.0000.00816.00
7.1.10.0000.00816.00
7.1.00.0010.04319.25
7.0.330.0050.00616.00
7.0.320.0040.01116.00
7.0.310.0040.01116.00
7.0.300.0040.01216.00
7.0.290.0100.00716.00
7.0.280.0060.00616.00
7.0.270.0060.01016.00
7.0.260.0050.00516.00
7.0.250.0030.01016.00
7.0.240.0000.00916.00
7.0.230.0040.01216.00
7.0.220.0030.01016.00
7.0.210.0000.01016.00
7.0.200.0170.00515.39
7.0.190.0090.00616.00
7.0.180.0060.00316.00
7.0.170.0000.01216.00
7.0.160.0110.00416.00
7.0.150.0090.00616.00
7.0.140.0070.03819.04
7.0.130.0090.00016.00
7.0.120.0110.00316.00
7.0.110.0040.02117.97
7.0.100.0120.02317.95
7.0.90.0050.02117.99
7.0.80.0030.02618.03
7.0.70.0130.03717.96
7.0.60.0080.03817.97
7.0.50.0050.02417.98
7.0.40.0060.02117.81
7.0.30.0070.04317.94
7.0.20.0010.02317.93
7.0.10.0040.03317.87
7.0.00.0050.04217.86
5.6.400.0000.01416.00
5.6.390.0070.00716.00
5.6.380.0120.00316.00
5.6.370.0060.00916.00
5.6.360.0030.01016.00
5.6.350.0030.01416.00
5.6.340.0030.01216.00
5.6.330.0030.01416.00
5.6.320.0060.00916.00
5.6.310.0030.01016.00
5.6.300.0070.00716.00
5.6.290.0030.01016.00
5.6.280.0050.04018.45
5.6.270.0000.00916.00
5.6.260.0030.02418.37
5.6.250.0050.02018.37
5.6.240.0040.02218.29
5.6.230.0030.02218.29
5.6.220.0030.04018.34
5.6.210.0050.02418.31
5.6.200.0060.02118.30
5.6.190.0110.03818.31
5.6.180.0030.03218.35
5.6.170.0020.02918.33
5.6.160.0060.02118.36
5.6.150.0030.02618.36
5.6.140.0040.02118.31
5.6.130.0050.02518.34
5.6.120.0030.03618.29
5.6.110.0140.01718.31
5.6.100.0080.02218.30
5.6.90.0030.04918.33
5.6.80.0070.03118.00
5.6.70.0050.02518.13
5.6.60.0080.02218.00
5.6.50.0060.01818.03
5.6.40.0060.01717.99
5.6.30.0110.01818.02
5.6.20.0030.03118.02
5.6.10.0050.02217.95
5.6.00.0070.03517.97
5.5.380.0020.02216.77
5.5.370.0040.02116.81
5.5.360.0050.02616.77
5.5.350.0090.03816.80
5.5.340.0030.04217.09
5.5.330.0060.02817.09
5.5.320.0040.02117.06
5.5.310.0020.02917.03
5.5.300.0120.01816.93
5.5.290.0040.02717.05
5.5.280.0040.02917.04
5.5.270.0020.02917.07
5.5.260.0020.02616.91
5.5.250.0020.02516.98
5.5.240.0000.02416.67
5.5.230.0070.01816.78
5.5.220.0030.03916.66
5.5.210.0100.02516.71
5.5.200.0070.02416.76
5.5.190.0030.02416.76
5.5.180.0090.03516.60
5.5.170.0040.01116.00
5.5.160.0070.02916.59
5.5.150.0020.02516.58
5.5.140.0050.02516.59
5.5.130.0030.02516.75
5.5.120.0060.03816.75
5.5.110.0020.04216.77
5.5.100.0050.02816.55
5.5.90.0050.03616.66
5.5.80.0050.02216.71
5.5.70.0060.02116.66
5.5.60.0100.03716.71
5.5.50.0030.03716.70
5.5.40.0110.03516.68
5.5.30.0050.02016.62
5.5.20.0110.03516.58
5.5.10.0000.02416.64
5.5.00.0050.04316.55
5.4.450.0050.02717.71
5.4.440.0050.03017.70
5.4.430.0070.03217.74
5.4.420.0050.02317.67
5.4.410.0030.03317.65
5.4.400.0060.02017.49
5.4.390.0030.03017.55
5.4.380.0060.02017.51
5.4.370.0070.02217.50
5.4.360.0020.02417.62
5.4.350.0080.03317.55
5.4.340.0040.02117.64
5.4.330.0040.01116.00
5.4.320.0030.02717.49
5.4.310.0060.02617.63
5.4.300.0030.02117.54
5.4.290.0020.02417.50
5.4.280.0020.03517.53
5.4.270.0050.04017.50
5.4.260.0080.02317.61
5.4.250.0040.04017.57
5.4.240.0130.01017.50
5.4.230.0020.03517.48
5.4.220.0130.02817.58
5.4.210.0050.04017.52
5.4.200.0040.03017.55
5.4.190.0050.03817.49
5.4.180.0030.03117.57
5.4.170.0100.04217.50
5.4.160.0050.04117.61
5.4.150.0100.03217.54
5.4.140.0030.04016.17
5.4.130.0020.02516.16
5.4.120.0050.02116.17
5.4.110.0030.03616.24
5.4.100.0030.03516.19
5.4.90.0070.01816.20
5.4.80.0020.02216.09
5.4.70.0030.02516.24
5.4.60.0070.03216.18
5.4.50.0020.02416.17
5.4.40.0060.01816.13
5.4.30.0020.03316.20
5.4.20.0040.02216.24
5.4.10.0020.02716.22
5.4.00.0030.02615.96
5.3.290.0070.02015.32
5.3.280.0030.02315.27
5.3.270.0060.03515.27
5.3.260.0070.04415.31
5.3.250.0070.03015.23
5.3.240.0020.02615.31
5.3.230.0030.02315.33
5.3.220.0060.02315.26
5.3.210.0040.02315.21
5.3.200.0050.03915.27
5.3.190.0060.02115.25
5.3.180.0050.02615.25
5.3.170.0050.03815.27
5.3.160.0040.04115.25
5.3.150.0020.02515.24
5.3.140.0040.02215.25
5.3.130.0070.02215.31
5.3.120.0050.02215.27
5.3.110.0020.02515.20
5.3.100.0040.02414.97
5.3.90.0030.03015.00
5.3.80.0060.03814.98
5.3.70.0030.03114.97
5.3.60.0060.02915.00
5.3.50.0020.03014.90
5.3.40.0070.03414.94
5.3.30.0030.02214.91
5.3.20.0070.02314.83
5.3.10.0080.03314.80
5.3.00.0050.02914.79
5.2.170.0030.04012.19
5.2.160.0000.03712.19
5.2.150.0030.05312.19
5.2.140.0070.06012.19
5.2.130.0000.04312.19
5.2.120.0000.03012.19
5.2.110.0130.04012.19
5.2.100.0100.04312.19
5.2.90.0030.05012.19
5.2.80.0000.05012.19
5.2.70.0030.06012.19
5.2.60.0000.05012.19
5.2.50.0030.03012.19
5.2.40.0000.03312.19
5.2.30.0030.03012.19
5.2.20.0070.05012.19
5.2.10.0070.06312.19
5.2.00.0000.07712.19
5.1.60.0000.05712.19
5.1.50.0030.05012.19
5.1.40.0000.03312.19
5.1.30.0070.02712.19
5.1.20.0030.05312.19
5.1.10.0100.02012.19
5.1.00.0000.03012.19
5.0.50.0000.03712.19
5.0.40.0070.01712.19
5.0.30.0100.03712.19
5.0.20.0000.02712.19
5.0.10.0030.02012.19
5.0.00.0000.06312.19
4.4.90.0000.04012.19
4.4.80.0030.02012.19
4.4.70.0000.03012.19
4.4.60.0000.04312.19
4.4.50.0030.03312.19
4.4.40.0030.02712.19
4.4.30.0030.02012.19
4.4.20.0000.03012.19
4.4.10.0000.03712.19
4.4.00.0030.02312.19
4.3.110.0070.01012.19
4.3.100.0000.03312.19
4.3.90.0070.02312.19
4.3.80.0000.03312.19
4.3.70.0000.01712.19
4.3.60.0070.02712.19
4.3.50.0000.02012.19
4.3.40.0030.02312.19
4.3.30.0070.02712.19
4.3.20.0030.01712.19
4.3.10.0030.01712.19
4.3.00.0000.03012.19

preferences:
49.19 ms | 400 KiB | 5 Q