3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = trim(' {555555 123456 123456} {666666 654321 654321} {777777 123456 123456} '); $items = []; if (preg_match_all('/^{[\d]{1,} ([\d]{1,}) ([\d]{1,})}$/m', $foo, $matches)) { $items = array_reduce( array_slice($matches, 1), fn(array $found, array $match) => array_merge($found, $match), [] ); } var_dump($items);

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.5.20.0070.01021.35
8.5.10.0110.00620.00
8.5.00.0120.01020.12
8.4.170.0120.01024.02
8.4.160.0150.00723.75
8.4.150.0030.00014.05
8.4.140.0150.01117.79
8.4.130.0160.00517.95
8.4.120.0110.00920.52
8.4.110.0110.00718.82
8.4.100.0110.01117.93
8.4.90.0060.00319.62
8.4.80.0120.00917.95
8.4.70.0090.01218.08
8.4.60.0050.00418.61
8.4.50.0110.00919.55
8.4.40.0140.00718.14
8.4.30.0100.01018.86
8.4.20.0040.01818.10
8.4.10.0000.01222.27
8.3.290.0140.00718.55
8.3.280.0030.00014.05
8.3.270.0100.00916.69
8.3.260.0110.00916.75
8.3.250.0080.01217.10
8.3.240.0110.00816.58
8.3.230.0090.00716.66
8.3.220.0030.00417.37
8.3.210.0100.00916.73
8.3.200.0030.00516.71
8.3.190.0040.00417.01
8.3.180.0090.00618.41
8.3.170.0120.00620.63
8.3.160.0040.01217.09
8.3.150.0180.00016.98
8.3.140.0110.00716.65
8.3.130.0140.00716.88
8.3.120.0040.00420.58
8.3.110.0080.00016.80
8.3.100.0030.00616.76
8.3.90.0090.00926.77
8.3.80.0060.00318.43
8.3.70.0090.00616.58
8.3.60.0150.00018.28
8.3.50.0100.00720.25
8.3.40.0100.01020.34
8.3.30.0120.00618.88
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0040.01126.16
8.2.300.0140.00618.31
8.2.290.0110.00820.68
8.2.280.0050.00518.43
8.2.270.0070.01317.42
8.2.260.0080.00016.70
8.2.250.0080.00018.43
8.2.240.0100.00718.59
8.2.230.0000.00920.94
8.2.220.0030.00624.06
8.2.210.0000.00826.77
8.2.200.0030.00616.88
8.2.190.0070.01118.65
8.2.180.0120.00925.92
8.2.170.0120.00318.89
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0050.00226.16
8.2.110.0090.00022.09
8.2.100.0130.00017.91
8.2.90.0000.00818.16
8.2.80.0080.00018.96
8.2.70.0060.00318.04
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0040.00418.01
8.2.20.0000.00819.21
8.2.10.0040.00418.08
8.2.00.0050.00319.30
8.1.340.0110.00917.85
8.1.330.0100.01016.17
8.1.320.0140.00616.19
8.1.310.0090.00616.68
8.1.300.0070.01116.33
8.1.290.0090.00030.84
8.1.280.0080.00825.92
8.1.270.0000.00924.66
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0040.00422.03
8.1.230.0080.00320.83
8.1.220.0030.00617.78
8.1.210.0000.00818.92
8.1.200.0000.00817.48
8.1.190.0050.00517.21
8.1.180.0060.00318.10
8.1.170.0080.00318.85
8.1.160.0020.00519.02
8.1.150.0030.00618.80
8.1.140.0000.00717.68
8.1.130.0020.00518.95
8.1.120.0050.00217.52
8.1.110.0040.01017.60
8.1.100.0110.00817.66
8.1.90.0140.00417.55
8.1.80.0130.00417.50
8.1.70.0090.00917.54
8.1.60.0160.00317.66
8.1.50.0130.00517.51
8.1.40.0130.00717.59
8.1.30.0110.01117.90
8.1.20.0220.00017.70
8.1.10.0200.00017.60
8.1.00.0140.00817.65
8.0.300.0030.00620.08
8.0.290.0040.00416.88
8.0.280.0030.00318.32
8.0.270.0000.00817.28
8.0.260.0000.00618.34
8.0.250.0000.00717.01
8.0.240.0040.00717.02
8.0.230.0130.00516.95
8.0.220.0050.01016.93
8.0.210.0080.00816.91
8.0.200.0130.00317.02
8.0.190.0100.00516.94
8.0.180.0130.00317.04
8.0.170.0050.01016.91
8.0.160.0090.00616.95
8.0.150.0070.00716.93
8.0.140.0120.00216.85
8.0.130.0130.00317.01
8.0.120.0090.00616.89
8.0.110.0110.00417.08
8.0.100.0110.00316.93
8.0.90.0090.00616.91
8.0.80.0150.00017.00
8.0.70.0150.00016.89
8.0.60.0070.00816.91
8.0.50.0150.00017.01
8.0.30.0160.00016.96
8.0.20.0090.00616.89
8.0.10.0120.00317.07
7.4.330.0020.00215.55
7.4.320.0030.00316.59
7.4.300.0110.00716.82
7.4.290.0110.00716.70
7.4.280.0170.00016.71
7.4.270.0050.01116.79
7.4.260.0100.00616.79
7.4.250.0110.00716.71
7.4.240.0150.00016.82
7.4.230.0130.00616.80
7.4.220.0120.00316.61
7.4.210.0150.00016.59
7.4.200.0070.00816.59
7.4.190.0120.00316.71
7.4.180.0140.00016.84
7.4.160.0070.00716.63
7.4.150.0110.00416.89
7.4.140.0080.00616.70
7.4.130.0100.00316.61
7.4.120.0130.00016.61
7.4.110.0130.00016.73
7.4.100.0110.00316.89
7.4.90.0110.00416.55
7.4.80.0100.00516.68
7.4.70.0110.00416.62
7.4.60.0090.00416.55
7.4.50.0090.00216.55
7.4.40.0090.00016.40
7.4.30.0020.00416.48
7.4.20.0050.00216.44
7.4.10.0000.00716.61
7.4.00.0030.00516.43

preferences:
142.05 ms | 403 KiB | 5 Q