3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = <<<EOF <span class="wine-list-item-head"> <span class="wine-list-item-title"><h2><a href="/wine/2001-gigault-cotes-de-blaye-750-ml">2001 Gigault Cotes de Blaye</a></h2></span> <span class="wine-list-item-varietal">Red Blend</span> <span class="wine-list-item-format">750 ml</span> </span> <span class="wine-list-item-ratings"> <span class="wine-list-item-score"><span class="pre-score">wa</span>88</span> <span class="wine-list-item-score"><span class="pre-score">ws</span>86</span> </span> EOF; $french_wine_formats_pattern = '!<span class="wine-list-item-format">(.*)</span>!mi'; preg_match_all($french_wine_formats_pattern, $output, $french_wines_formats_matches); foreach($french_wines_formats_matches[0] as $french_wines_formats_match){ $french_wines_format_array[] = $french_wines_formats_match; } print_r($french_wines_format_array);

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.0140.00524.07
8.4.110.0100.00918.66
8.4.100.0060.00318.84
8.4.90.0150.00720.76
8.4.80.0020.00718.82
8.4.70.0110.01118.74
8.4.60.0120.00818.73
8.4.50.0110.00818.64
8.4.40.0100.01019.59
8.4.30.0140.00722.23
8.4.20.0130.00318.57
8.4.10.0100.00619.56
8.3.250.0090.01318.98
8.3.240.0060.00317.11
8.3.230.0150.00416.80
8.3.220.0100.00918.99
8.3.210.0070.00116.65
8.3.200.0030.00616.74
8.3.190.0100.00516.96
8.3.180.0080.00219.08
8.3.170.0170.00318.55
8.3.160.0100.00717.38
8.3.150.0120.00616.66
8.3.140.0070.01120.71
8.3.130.0030.00618.54
8.3.120.0030.00621.02
8.3.110.0080.00020.94
8.3.100.0040.00424.06
8.3.90.0000.01526.77
8.3.80.0090.00318.55
8.3.70.0140.00716.88
8.3.60.0040.01118.43
8.3.50.0020.01118.57
8.3.40.0150.00018.75
8.3.30.0070.00718.96
8.3.20.0030.00520.90
8.3.10.0040.00419.04
8.3.00.0000.00722.26
8.2.290.0060.01320.45
8.2.280.0110.00818.45
8.2.270.0060.01317.09
8.2.260.0110.00716.95
8.2.250.0030.00618.58
8.2.240.0000.00917.11
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0070.00717.05
8.2.180.0120.00317.00
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0080.00018.09
8.2.120.0050.00326.35
8.2.110.0030.00722.38
8.2.100.0070.00418.03
8.2.90.0060.00317.88
8.2.80.0040.00417.97
8.2.70.0050.00317.93
8.2.60.0040.00718.09
8.2.50.0060.00618.10
8.2.40.0000.00919.47
8.2.30.0000.00719.34
8.2.20.0000.00818.19
8.2.10.0070.00019.54
8.2.00.0040.00418.21
8.1.330.0090.00822.17
8.1.320.0110.01016.56
8.1.310.0060.00316.88
8.1.300.0100.01020.34
8.1.290.0090.00330.84
8.1.280.0040.01425.92
8.1.270.0060.00320.37
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.65
8.1.230.0070.00322.75
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0060.00317.48
8.1.180.0060.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00718.93
8.1.150.0030.00518.91
8.1.140.0050.00320.22
8.1.130.0070.00020.31
8.1.120.0000.01017.63
8.1.110.0000.00717.69
8.1.100.0040.00417.54
8.1.90.0000.00817.61
8.1.80.0040.00417.59
8.1.70.0050.00317.52
8.1.60.0090.00017.59
8.1.50.0040.00417.66
8.1.40.0080.00017.59
8.1.30.0090.00017.78
8.1.20.0040.00417.83
8.1.10.0070.00017.76
8.1.00.0060.00517.56
8.0.300.0040.00420.29
8.0.290.0080.00017.00
8.0.280.0000.00718.48
8.0.270.0070.00017.13
8.0.260.0070.00018.48
8.0.250.0030.00317.21
8.0.240.0040.00417.15
8.0.230.0030.00717.01
8.0.220.0050.00217.10
8.0.210.0080.00017.12
8.0.200.0060.00017.04
8.0.190.0040.00417.07
8.0.180.0000.00817.13
8.0.170.0000.00817.17
8.0.160.0060.00317.18
8.0.150.0000.00816.95
8.0.140.0000.00717.05
8.0.130.0000.00613.57
8.0.120.0100.00017.04
8.0.110.0050.00317.08
8.0.100.0000.00717.05
8.0.90.0000.00916.95
8.0.80.0070.01317.18
8.0.70.0000.00817.07
8.0.60.0050.00316.99
8.0.50.0040.00417.09
8.0.30.0140.00617.29
8.0.20.0090.01117.31
8.0.10.0050.00317.20
8.0.00.0120.00816.95
7.4.330.0000.00415.55
7.4.320.0040.00416.75
7.4.300.0030.00316.79
7.4.290.0040.00416.62
7.4.280.0040.00416.84
7.4.270.0070.00016.86
7.4.260.0030.00316.74
7.4.250.0080.00016.75
7.4.240.0040.00416.60
7.4.230.0070.00016.57
7.4.220.0040.00416.62
7.4.210.0070.01016.88
7.4.200.0080.00016.91
7.4.160.0040.01416.76
7.4.140.0120.00917.86
7.4.130.0060.01216.73
7.4.120.0150.00316.81
7.4.110.0070.01016.79
7.4.100.0070.01316.86
7.4.90.0080.01416.61
7.4.80.0110.00719.39
7.4.70.0100.01316.80
7.4.60.0060.01116.66
7.4.50.0030.01416.30
7.4.40.0090.01216.88
7.4.00.0070.00815.13
7.3.330.0050.00013.30
7.3.320.0000.00613.43
7.3.310.0000.00716.64
7.3.300.0030.00316.54
7.3.290.0070.00016.54
7.3.280.0050.01116.43
7.3.260.0140.00616.59
7.3.240.0070.01016.59
7.3.230.0160.00016.63
7.3.210.0130.00416.61
7.3.200.0000.01616.51
7.3.190.0120.01116.67
7.3.180.0090.00916.66
7.3.170.0100.00816.55
7.3.160.0100.01216.67
7.3.120.0070.01014.80
7.3.110.0070.01015.07
7.3.100.0040.01114.67
7.3.90.0100.00715.01
7.3.80.0080.00015.13
7.3.70.0070.01115.14
7.3.60.0030.01315.09
7.3.50.0040.00714.88
7.3.40.0060.00915.04
7.3.30.0040.01114.77
7.3.20.3280.00615.52
7.3.10.3500.01215.62
7.3.00.3840.00515.73
7.2.330.0110.00716.91
7.2.320.0130.00316.68
7.2.310.0060.00916.85
7.2.300.0070.01016.92
7.2.290.0070.01016.70
7.2.250.0000.01815.04
7.2.240.0090.00915.15
7.2.230.0070.00715.09
7.2.220.0040.01215.36
7.2.210.0030.01315.33
7.2.200.0060.00915.06
7.2.190.0040.01215.05
7.2.180.0030.00915.29
7.2.170.0030.00915.34
7.2.150.7910.00714.91
7.2.140.5640.00715.29
7.2.130.6340.00714.83
7.2.120.3180.01314.81
7.2.110.6530.00315.21
7.2.100.7330.01015.21
7.2.90.2730.01015.08
7.2.80.2860.00714.75
7.2.70.3790.01314.86
7.2.60.8400.01015.11
7.2.50.1840.01014.84
7.2.40.2200.00715.08
7.2.30.6030.00715.19
7.2.20.1610.01315.09
7.2.10.2130.00714.81
7.2.00.2490.01315.16
7.1.330.0030.00915.93
7.1.320.0000.01516.08
7.1.310.0030.00616.10
7.1.300.0060.00616.03
7.1.290.0060.00316.09
7.1.280.0000.00815.99
7.1.270.0050.00516.05
7.1.260.0060.00315.93
7.1.250.1480.00314.05

preferences:
28.85 ms | 403 KiB | 5 Q