3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ' Balthazar - True Love # Maarten Devoldere Adani & Wolf - Let It Go # Daniel Testas Adani & Wolf - Let It Go # Rob Gaasterland Balthazar - True Love # Maarten Devoldere Balthazar - True Love # Jinte Deprez Balthazar - True Love # Name 3 '; preg_match_all('/^([^#]+)#([^\n]+)/m', trim($text), $matches, PREG_SET_ORDER); foreach ($matches as $v) { $result[trim($v[1])][] = trim($v[2]); } foreach ($result as $k => $v){ echo $k .' # '. join(', ', $v) . PHP_EOL; }

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.0140.00418.43
8.3.50.0130.00716.62
8.3.40.0030.01219.07
8.3.30.0070.00718.79
8.3.20.0000.00820.90
8.3.10.0030.00622.04
8.3.00.0040.00421.74
8.2.180.0000.01516.75
8.2.170.0150.00622.96
8.2.160.0100.00322.14
8.2.150.0050.00524.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00319.39
8.2.110.0100.00021.14
8.2.100.0120.00017.91
8.2.90.0090.00019.82
8.2.80.0040.00419.46
8.2.70.0110.00017.62
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0000.00718.17
8.2.30.0000.00818.11
8.2.20.0050.00318.04
8.2.10.0040.00419.21
8.2.00.0060.00319.39
8.1.280.0150.00625.92
8.1.270.0050.00320.78
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00022.71
8.1.230.0110.00020.87
8.1.220.0030.00617.74
8.1.210.0040.00418.96
8.1.200.0060.00317.48
8.1.190.0060.00317.23
8.1.180.0000.00918.10
8.1.170.0000.00817.62
8.1.160.0040.00418.90
8.1.150.0070.00018.95
8.1.140.0000.00720.87
8.1.130.0050.00217.59
8.1.120.0000.00817.64
8.1.110.0040.00417.58
8.1.100.0000.00717.61
8.1.90.0040.00417.50
8.1.80.0040.00417.66
8.1.70.0050.00317.49
8.1.60.0040.00417.74
8.1.50.0000.00717.69
8.1.40.0030.00517.57
8.1.30.0050.00217.80
8.1.20.0030.00617.84
8.1.10.0040.00417.77
8.1.00.0050.00317.63
8.0.300.0000.00719.98
8.0.290.0070.00016.88
8.0.280.0040.00418.46
8.0.270.0000.00718.18
8.0.260.0070.00017.00
8.0.250.0030.00317.02
8.0.240.0030.00717.06
8.0.230.0030.00617.09
8.0.220.0080.00016.94
8.0.210.0030.00317.05
8.0.200.0000.00717.14
8.0.190.0000.00717.10
8.0.180.0080.00016.96
8.0.170.0060.00317.05
8.0.160.0040.00417.04
8.0.150.0030.00616.89
8.0.140.0000.00817.04
8.0.130.0050.00013.43
8.0.120.0080.00017.02
8.0.110.0030.00516.82
8.0.100.0000.00916.95
8.0.90.0030.00616.90
8.0.80.0090.00617.01
8.0.70.0000.00816.84
8.0.60.0040.00416.91
8.0.50.0050.00316.99
8.0.30.0170.00316.95
8.0.20.0100.01317.31
8.0.10.0000.00817.26
8.0.00.0140.00616.99
7.4.330.0000.00516.91
7.4.320.0000.00616.70
7.4.300.0070.00016.82
7.4.290.0080.00016.71
7.4.280.0000.00816.73
7.4.270.0000.00716.73
7.4.260.0000.00613.34
7.4.250.0040.00416.83
7.4.240.0070.00016.66
7.4.230.0030.00316.90
7.4.220.0040.00316.82
7.4.210.0070.01016.79
7.4.200.0000.00716.73
7.4.130.0110.00716.84
7.4.120.0000.01816.53
7.4.110.0120.01316.86
7.4.100.0100.00716.72
7.4.90.0040.01316.51
7.4.80.0100.00719.39
7.4.70.0150.00316.66
7.4.60.0080.00916.78
7.4.50.0040.01416.85
7.4.40.0070.01016.71
7.4.10.0080.00814.77
7.4.00.0080.00814.78
7.3.330.0000.01016.28
7.3.320.0050.00013.31
7.3.310.0050.00516.49
7.3.300.0000.00716.53
7.3.290.0110.00716.55
7.3.280.0070.01016.45
7.3.260.0120.01016.74
7.3.240.0080.00816.63
7.3.230.0060.01116.48
7.3.210.0030.01316.57
7.3.200.0140.00616.52
7.3.190.0130.00916.95
7.3.180.0030.01316.66
7.3.170.0120.00616.54
7.3.160.0100.00616.75
7.3.130.0120.00614.47
7.3.120.0100.00814.95
7.3.110.0000.01714.94
7.3.100.0100.00714.68
7.3.90.0080.00814.64
7.3.80.0120.00915.04
7.3.70.0120.01214.57
7.3.60.0100.01014.70
7.3.50.0100.00814.75
7.3.40.0090.00914.70
7.3.30.0060.00914.91
7.3.20.0110.00514.70
7.3.10.0110.00514.89
7.3.00.0210.00314.83
7.2.330.0090.00916.86
7.2.320.0040.01216.87
7.2.310.0130.00316.84
7.2.300.0090.01316.79
7.2.290.0160.00716.75
7.2.260.0150.00315.01
7.2.250.0100.00614.87
7.2.240.0100.00614.86
7.2.230.0100.01014.91
7.2.220.0130.00314.99
7.2.210.0120.00914.92
7.2.200.0170.00514.95
7.2.190.0070.01114.49
7.2.180.0100.01014.74
7.2.170.0080.01514.95
7.2.160.0070.01414.97
7.2.150.0120.01314.99
7.2.140.0130.00315.10
7.2.130.0120.00815.04
7.2.120.0180.00314.80
7.2.110.0090.00915.25
7.2.100.0140.00415.00
7.2.90.0080.01014.89
7.2.80.0060.01115.12
7.2.70.0070.01014.81
7.2.60.0130.00415.05
7.2.50.0090.00614.89
7.2.40.0070.01115.00
7.2.30.0190.00014.85
7.2.20.0130.00915.14
7.2.10.0100.01014.99
7.2.00.0040.01415.09

preferences:
58.19 ms | 400 KiB | 5 Q