3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dwellingInfo = [ ["AAA", "Chimney with red bricks"], ["BBB", "Two wide windows in the main floor"], ["CCC", "Roof tiles renewed in 2015"] ]; $haystack = implode( ',', array_column($dwellingInfo, 1) ); $dwellingAttributes = [ ["0001", 'Chimney', '/\b(?:Chimney with|Big stove)\b/i'], ["0002", 'Garden', '/\bgarden\b/i'], ["0003", 'Roof tiles', '/\bRoof tiles\b/i'], ["0004", 'Windows', '/\bwindows?\b/i'], ["0005", 'Garage', '/\b(?:garage|car port|under cover area)\b/i'] ]; $attributePatterns = [ "0001" => '/\b(?:Chimney with|Big stove)\b/i', "0002" => '/\bgarden\b/i', "0003" => '/\bRoof tiles\b/i', "0004" => '/\bwindows?\b/i', "0005" => '/\b(?:garage|car port|under cover area)\b/i' ]; foreach ($dwellingAttributes as [$id, $term, $pattern]) { printf( "%s - %s - %s\n", $id, $term, preg_match($attributePatterns[$id], $haystack) ? 'available' : 'unavailable' ); }

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.00724.21
8.4.110.0130.00822.70
8.4.100.0070.00217.94
8.4.90.0110.00920.31
8.4.80.0130.00618.94
8.4.70.0120.01018.98
8.4.60.0110.00818.57
8.4.50.0090.01118.02
8.4.40.0070.01318.08
8.4.30.0160.00320.43
8.4.20.0100.01017.65
8.4.10.0090.00322.09
8.3.250.0130.00618.77
8.3.240.0130.00617.07
8.3.230.0130.00716.71
8.3.220.0120.00818.73
8.3.210.0060.00218.59
8.3.200.0060.00316.54
8.3.190.0030.00517.36
8.3.180.0160.00516.87
8.3.170.0100.01016.87
8.3.160.0070.01116.96
8.3.150.0150.00417.19
8.3.140.0040.00418.29
8.3.130.0110.00718.63
8.3.120.0120.00320.48
8.3.110.0100.01016.86
8.3.100.0100.00617.05
8.3.90.0080.00826.77
8.3.80.0040.00416.88
8.3.70.0120.00318.55
8.3.60.0090.00916.61
8.3.50.0060.01220.25
8.3.40.0110.00320.15
8.3.30.0110.00419.02
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.290.0050.00520.49
8.2.280.0070.00820.43
8.2.270.0120.00616.97
8.2.260.0000.00719.12
8.2.250.0040.01118.70
8.2.240.0030.00619.20
8.2.230.0030.00620.94
8.2.220.0180.00324.06
8.2.210.0060.00326.77
8.2.200.0060.00316.75
8.2.190.0110.00716.75
8.2.180.0140.00725.92
8.2.170.0170.00719.13
8.2.160.0030.01022.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0060.00319.73
8.2.110.0090.00022.41
8.2.100.0040.00717.97
8.2.90.0040.00417.75
8.2.80.0040.00419.03
8.2.70.0000.00817.88
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00817.62
8.2.30.0040.00418.18
8.2.20.0000.00720.57
8.2.10.0040.00418.22
8.2.00.0030.00619.35
8.1.330.0090.00821.73
8.1.320.0060.00216.65
8.1.310.0080.00018.45
8.1.300.0090.00318.30
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00020.52
8.1.230.0040.00717.57
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0000.00817.35
8.1.180.0070.00318.10
8.1.170.0000.00818.68
8.1.160.0040.00418.88
8.1.150.0000.00818.80
8.1.140.0030.00617.51
8.1.130.0070.00018.92
8.1.120.0000.00817.50
8.1.110.0040.00417.52
8.1.100.0050.00217.64
8.1.90.0100.00417.59
8.1.80.0130.00317.61
8.1.70.0120.00317.54
8.1.60.0170.00317.69
8.1.50.0110.00617.57
8.1.40.0120.00717.59
8.1.30.0120.00717.70
8.1.20.0050.01317.65
8.1.10.0130.00617.70
8.1.00.0130.00517.61
8.0.300.0060.00618.77
8.0.290.0000.00816.88
8.0.280.0040.00418.54
8.0.270.0000.00718.05
8.0.260.0000.00718.42
8.0.250.0030.00317.11
8.0.240.0030.00317.09
8.0.230.0000.00717.02
8.0.220.0060.00716.79
8.0.210.0070.00716.86
8.0.200.0150.00016.86
8.0.190.0090.00517.03
8.0.180.0080.00816.91
8.0.170.0120.00216.95
8.0.160.0100.00516.87
8.0.150.0070.00816.95
8.0.140.0090.00716.86
8.0.130.0100.00516.86
8.0.120.0020.01216.85
8.0.110.0100.00616.84
8.0.100.0080.00616.82
8.0.90.0100.00416.83
8.0.80.0090.00616.72
8.0.70.0130.00316.89
8.0.60.0120.00216.91
8.0.50.0070.00716.77
8.0.30.0040.00816.95
8.0.20.0040.00817.07
8.0.10.0120.00116.99
7.4.330.0030.00315.55
7.4.320.0070.00016.76
7.4.300.0040.00916.52
7.4.290.0080.00616.68
7.4.280.0100.00516.67
7.4.270.0110.00216.73
7.4.260.0040.00916.61
7.4.250.0080.00516.67
7.4.240.0110.00316.64
7.4.230.0070.00716.53
7.4.220.0080.00416.62
7.4.210.0050.00716.71
7.4.200.0090.00516.52
7.4.190.0140.00116.60
7.4.180.0100.00316.75
7.4.160.0090.00316.62
7.4.150.0080.00516.56
7.4.140.0080.00416.53
7.4.130.0060.00716.62
7.4.120.0110.00216.65
7.4.110.0090.00416.47
7.4.100.0090.00416.67
7.4.90.0100.00416.45
7.4.80.0100.00316.60
7.4.70.0060.00716.61
7.4.60.0100.00316.58
7.4.50.0120.00116.53
7.4.40.0060.00716.58
7.4.30.0090.00416.53
7.4.20.0120.00216.44
7.4.10.0090.00416.59
7.4.00.0090.00416.50

preferences:
31.16 ms | 403 KiB | 5 Q