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'] ]; foreach ($dwellingAttributes as [$id, $term, $pattern]) { printf( "%s - %s - %s\n", $id, $term, preg_match($pattern, $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.0110.00920.52
8.4.110.0070.00522.38
8.4.100.0130.00817.73
8.4.90.0090.00720.63
8.4.80.0130.00718.93
8.4.70.0130.00818.75
8.4.60.0050.00417.89
8.4.50.0070.00218.11
8.4.40.0140.00417.99
8.4.30.0070.01320.26
8.4.20.0130.00717.93
8.4.10.0090.00022.01
8.3.250.0120.00719.07
8.3.240.0160.00316.56
8.3.230.0060.00216.75
8.3.220.0090.00418.98
8.3.210.0120.00916.86
8.3.200.0050.00416.62
8.3.190.0110.00816.86
8.3.180.0070.00216.52
8.3.170.0140.00417.07
8.3.160.0070.01216.82
8.3.150.0110.01117.05
8.3.140.0040.00416.76
8.3.130.0060.00318.63
8.3.120.0030.00618.68
8.3.110.0040.00420.94
8.3.100.0000.01016.83
8.3.90.0120.00626.77
8.3.80.0110.00017.00
8.3.70.0130.01018.56
8.3.60.0120.00316.63
8.3.50.0070.01420.19
8.3.40.0140.00720.29
8.3.30.0120.00318.87
8.3.20.0080.00024.18
8.3.10.0030.01224.66
8.3.00.0030.00526.16
8.2.290.0090.01020.27
8.2.280.0110.00816.93
8.2.270.0070.01117.39
8.2.260.0090.00919.00
8.2.250.0040.00418.43
8.2.240.0070.00019.34
8.2.230.0000.00922.58
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0000.00917.00
8.2.190.0090.00616.63
8.2.180.0060.01025.92
8.2.170.0160.00619.21
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0080.00020.08
8.2.110.0040.00420.52
8.2.100.0090.00319.68
8.2.90.0040.00717.88
8.2.80.0040.00419.05
8.2.70.0050.00317.88
8.2.60.0080.00017.88
8.2.50.0090.00018.04
8.2.40.0050.00318.34
8.2.30.0000.00718.17
8.2.20.0070.00020.48
8.2.10.0030.00518.22
8.2.00.0000.00719.31
8.1.330.0140.00421.94
8.1.320.0110.00818.25
8.1.310.0030.00616.89
8.1.300.0030.00618.06
8.1.290.0100.00030.84
8.1.280.0110.00325.92
8.1.270.0130.00720.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.65
8.1.230.0090.00317.83
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0050.00317.62
8.1.160.0050.00218.99
8.1.150.0080.00018.85
8.1.140.0070.00417.63
8.1.130.0050.00220.67
8.1.120.0040.00417.53
8.1.110.0030.00517.52
8.1.100.0000.00817.51
8.1.90.0040.00717.59
8.1.80.0140.00417.48
8.1.70.0040.00717.63
8.1.60.0060.00617.72
8.1.50.0000.01017.61
8.1.40.0060.00617.64
8.1.30.0000.01117.80
8.1.20.0040.01317.64
8.1.10.0110.00717.63
8.1.00.0180.00017.58
8.0.300.0050.00318.77
8.0.290.0000.00916.88
8.0.280.0030.00318.40
8.0.270.0000.00716.95
8.0.260.0030.00318.56
8.0.250.0000.00717.13
8.0.240.0000.00717.10
8.0.230.0000.00716.96
8.0.220.0000.01017.01
8.0.210.0110.00417.02
8.0.200.0150.00017.08
8.0.190.0120.00417.09
8.0.180.0160.00016.91
8.0.170.0050.01016.93
8.0.160.0100.00517.00
8.0.150.0120.00516.96
8.0.140.0160.00016.92
8.0.130.0110.00416.92
8.0.120.0070.00817.11
8.0.110.0110.00416.83
8.0.100.0120.00417.07
8.0.90.0100.00516.97
8.0.80.0090.00616.99
8.0.70.0120.00316.98
8.0.60.0090.00617.02
8.0.50.0160.00016.95
8.0.30.0140.00017.06
8.0.20.0080.00817.03
8.0.10.0050.01017.01
7.4.330.0000.00615.55
7.4.320.0030.00316.88
7.4.300.0100.00716.70
7.4.290.0100.00516.80
7.4.280.0160.00016.72
7.4.270.0140.00416.75
7.4.260.0100.00716.83
7.4.250.0170.00016.80
7.4.240.0100.00516.59
7.4.230.0160.00016.71
7.4.220.0120.00316.76
7.4.210.0140.00016.79
7.4.200.0030.01016.62
7.4.190.0090.00416.68
7.4.180.0100.00316.89
7.4.160.0080.00616.86
7.4.150.0080.00816.77
7.4.140.0150.00016.73
7.4.130.0040.00916.71
7.4.120.0040.00416.70
7.4.110.0120.00016.71
7.4.100.0070.00616.81
7.4.90.0100.00416.80
7.4.80.0080.00316.64
7.4.70.0000.00716.79
7.4.60.0060.00616.59
7.4.50.0060.00316.79
7.4.40.0000.00716.58
7.4.30.0050.00516.85
7.4.20.0060.00316.70
7.4.10.0070.00216.64
7.4.00.0060.00316.69

preferences:
28.11 ms | 403 KiB | 5 Q