3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ "Lincoln Crown", "Crown Court", "go holiday", "house fire", "John Hinton", "Hinton Jailed" ]; $output = []; while ($input) { $output[] = $words = array_shift($input); $input = preg_grep('~\b(?:\Q' . str_replace(' ', '\E|\Q', $words) . '\E)\b~', $input, PREG_GREP_INVERT); } var_export($output);

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.4.120.0130.00720.38
8.4.110.0150.00522.32
8.4.100.0120.00918.72
8.4.90.0080.01222.38
8.4.80.0030.00618.72
8.4.70.0030.00519.00
8.4.60.0080.00419.05
8.4.50.0100.01018.47
8.4.40.0140.00717.81
8.4.30.0060.00324.46
8.4.20.0050.01418.96
8.4.10.0030.00619.64
8.3.250.0090.00919.06
8.3.240.0140.00516.92
8.3.230.0130.00516.53
8.3.220.0090.00919.14
8.3.210.0110.00416.68
8.3.200.0110.01216.52
8.3.190.0050.00317.07
8.3.180.0110.01016.68
8.3.170.0090.00918.79
8.3.160.0040.01516.75
8.3.150.0150.00318.99
8.3.140.0060.00316.75
8.3.130.0030.00516.76
8.3.120.0050.00518.88
8.3.110.0040.00420.94
8.3.100.0030.01317.16
8.3.90.0040.01126.77
8.3.80.0030.00619.36
8.3.70.0070.00718.43
8.3.60.0130.01018.52
8.3.50.0120.00719.32
8.3.40.0040.01218.96
8.3.30.0110.00418.79
8.3.20.0050.00320.96
8.3.10.0060.00321.88
8.3.00.0040.00423.66
8.2.290.0130.00620.44
8.2.280.0080.00718.74
8.2.270.0040.00418.96
8.2.260.0000.01520.36
8.2.250.0090.00018.73
8.2.240.0060.00318.20
8.2.230.0030.00622.58
8.2.220.0100.00724.06
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0190.00318.41
8.2.180.0070.00716.38
8.2.170.0150.00022.96
8.2.160.0070.00719.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0040.00422.30
8.2.100.0090.00319.82
8.2.90.0040.00417.75
8.2.80.0000.00819.04
8.2.70.0000.00817.88
8.2.60.0030.00518.03
8.2.50.0080.00018.07
8.2.40.0000.00818.35
8.2.30.0070.00018.23
8.2.20.0000.00718.10
8.2.10.0000.00719.36
8.2.00.0040.00419.34
8.1.330.0110.00721.92
8.1.320.0100.00617.88
8.1.310.0120.00616.71
8.1.300.0110.00318.07
8.1.290.0030.00630.84
8.1.280.0080.00625.92
8.1.270.0030.00523.99
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0190.00018.88
8.1.230.0040.00817.95
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00718.79
8.1.160.0040.00418.91
8.1.150.0040.00418.85
8.1.140.0040.00418.80
8.1.130.0000.00720.09
8.1.120.0030.00517.64
8.1.110.0000.00817.52
8.1.100.0040.00417.61
8.1.90.0080.00017.63
8.1.80.0040.00417.60
8.1.70.0040.00717.62
8.1.60.0040.00417.63
8.1.50.0000.00817.57
8.1.40.0060.00317.68
8.1.30.0040.00417.77
8.1.20.0090.00017.71
8.1.10.0000.00917.70
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0030.00318.50
8.0.270.0000.00717.21
8.0.260.0000.00720.25
8.0.250.0000.00717.00
8.0.240.0030.00317.11
8.0.230.0040.00416.99
8.0.220.0030.00517.07
8.0.210.0040.00417.01
8.0.200.0000.00617.07
8.0.190.0030.00317.09
8.0.180.0040.00417.06
8.0.170.0050.00516.99
8.0.160.0040.00316.95
8.0.150.0030.00616.84
8.0.140.0050.00316.94
8.0.130.0000.00613.46
8.0.120.0030.00517.07
8.0.110.0000.00716.96
8.0.100.0040.00416.93
8.0.90.0000.00817.12
8.0.80.0040.01617.12
8.0.70.0040.00417.07
8.0.60.0000.00716.94
8.0.50.0080.00016.89
8.0.30.0120.00717.13
8.0.20.0160.00316.96
8.0.10.0070.00016.96
8.0.00.0090.00916.99
7.4.330.0000.00515.55
7.4.320.0000.00616.58
7.4.300.0040.00416.66
7.4.290.0040.00816.65
7.4.280.0040.00416.67
7.4.270.0040.00416.68
7.4.260.0070.00016.67
7.4.250.0070.00016.65
7.4.240.0020.00616.64
7.4.230.0050.00316.82
7.4.220.0030.00316.80
7.4.210.0120.00916.72
7.4.200.0000.00716.86
7.4.140.0140.00417.86
7.4.130.0130.00416.51
7.4.120.0130.00516.83
7.4.110.0130.00616.52
7.4.100.0110.00716.70
7.4.90.0090.00916.75
7.4.80.0060.01619.39
7.4.70.0090.01216.68
7.4.60.0100.01316.78
7.4.50.0090.00616.85
7.4.40.0080.00816.70
7.4.10.0100.00715.28
7.4.00.0120.00515.31
7.3.330.0000.00613.18
7.3.320.0030.00313.14
7.3.310.0030.00316.31
7.3.300.0070.00016.40
7.3.290.0080.00016.32
7.3.280.0060.00916.38
7.3.260.0110.00916.58
7.3.240.0080.01116.47
7.3.230.0090.00616.47
7.3.210.0130.00816.46
7.3.200.0080.00816.53
7.3.190.0130.01016.48
7.3.180.0070.00916.44
7.3.170.0110.00516.56
7.3.160.0070.01016.64
7.3.130.0040.01415.00
7.3.120.0060.01015.02
7.3.110.0000.01414.80
7.3.100.0030.01015.12
7.3.90.0030.01014.87
7.3.80.0110.00614.83
7.3.70.0000.01615.04
7.3.60.0050.01014.76
7.3.50.0030.01714.81
7.3.40.0080.00515.00
7.3.30.0130.00614.98
7.3.20.0050.01015.83
7.3.10.0090.00915.69
7.3.00.0590.01015.94
7.2.330.0100.01016.93
7.2.320.0060.01516.45
7.2.310.0070.01016.85
7.2.300.0120.01016.63
7.2.290.0070.01016.83
7.2.260.0060.01014.93
7.2.250.0070.01115.27
7.2.240.0100.00315.18
7.2.230.0000.01815.37
7.2.220.0030.01015.26
7.2.210.0060.00915.29
7.2.200.0060.00915.29
7.2.190.0100.00515.16
7.2.180.0120.00815.00
7.2.170.0050.00614.99
7.2.160.0060.00815.12
7.2.150.0090.00716.17
7.2.140.0140.00615.94
7.2.130.0130.00416.13
7.2.120.0080.00716.09
7.2.110.0070.00816.10
7.2.100.0110.00316.20
7.2.90.0100.00716.11
7.2.80.0110.01116.00
7.2.70.0060.01016.01
7.2.60.0090.00916.00
7.2.50.0080.00816.18
7.2.40.0130.00516.08
7.2.30.0120.00716.06
7.2.20.0100.00715.93
7.2.10.0060.01216.13
7.2.00.0080.01216.05
7.1.330.0040.00815.84
7.1.320.0070.00715.91
7.1.310.0110.00416.01
7.1.300.0120.00415.16
7.1.290.0160.00315.00
7.1.280.0080.00614.99
7.1.270.0030.01214.99
7.1.260.0110.00614.91
7.1.250.0080.00815.05
7.1.240.0050.00516.03
7.1.230.0060.00916.11
7.1.220.0030.01015.92
7.1.210.0120.00315.94
7.1.200.0090.00316.05
7.1.190.0070.00716.00
7.1.180.0030.00615.95
7.1.170.0070.01016.13
7.1.160.0090.00916.02
7.1.150.0030.01015.84
7.1.140.0060.00616.07
7.1.130.0070.00415.86
7.1.120.0030.01016.08
7.1.110.0060.00615.72
7.1.100.0080.00415.66
7.1.90.0070.01115.67
7.1.80.0030.01115.59
7.1.70.0100.00715.78
7.1.60.0100.00715.80
7.1.50.0000.01315.92
7.1.40.0090.00615.68
7.1.30.0060.00615.99
7.1.20.0040.01215.85
7.1.10.0030.01016.11
7.1.00.0030.00715.80

preferences:
136.1 ms | 403 KiB | 5 Q