3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'ok {RAH31E telex {Testing1}} {RAH31A telex {Testing1}} {RAH31B telex {Testing1}} {RAH31D telex {Testing1}}'; $pattern = '({(?<SENDER>[^\s]+?)\s(?<TYPE>[^\s]+?)\s{(?<MESSAGE>[^\s]+?)}})'; if(preg_match_all($pattern, $data, $matches, PREG_SET_ORDER )){ foreach($matches as $match){ echo $match['SENDER'], ':', $match['TYPE'], ':', $match['MESSAGE'], 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.5.20.0100.00820.04
8.5.10.0120.00818.75
8.5.00.0090.01219.92
8.4.170.0150.00820.43
8.4.160.0150.00622.37
8.4.150.0010.00214.05
8.4.140.0080.01217.90
8.4.130.0140.00618.83
8.4.120.0050.00324.09
8.4.110.0080.00118.25
8.4.100.0100.00418.89
8.4.90.0150.00620.58
8.4.80.0110.00918.10
8.4.70.0040.00518.05
8.4.60.0050.00318.88
8.4.50.0140.00719.01
8.4.40.0120.00919.69
8.4.30.0160.00320.62
8.4.20.0100.01018.03
8.4.10.0120.00822.03
8.3.300.0090.01120.85
8.3.290.0150.00520.61
8.3.280.0120.00818.57
8.3.270.0110.00916.94
8.3.260.0130.00616.98
8.3.250.0110.00818.76
8.3.240.0110.00717.13
8.3.230.0120.00716.63
8.3.220.0090.01117.22
8.3.210.0100.00616.73
8.3.200.0050.00316.76
8.3.190.0110.00817.02
8.3.180.0110.00916.93
8.3.170.0110.00720.77
8.3.160.0070.01117.23
8.3.150.0100.01017.20
8.3.140.0030.00618.59
8.3.130.0040.00418.58
8.3.120.0090.00619.00
8.3.110.0040.00420.94
8.3.100.0180.00016.80
8.3.90.0080.00026.77
8.3.80.0030.00618.43
8.3.70.0110.00718.43
8.3.60.0070.01418.34
8.3.50.0150.00020.36
8.3.40.0040.01118.93
8.3.30.0090.00619.27
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0090.01222.18
8.2.290.0080.00720.26
8.2.280.0070.00318.40
8.2.270.0110.00717.07
8.2.260.0090.00016.83
8.2.250.0100.00318.70
8.2.240.0060.00317.14
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0110.00726.77
8.2.200.0070.00316.75
8.2.190.0040.01816.75
8.2.180.0060.01225.92
8.2.170.0040.01119.21
8.2.160.0000.01522.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00420.87
8.2.110.0060.00322.38
8.2.100.0060.00619.23
8.2.90.0040.00417.88
8.2.80.0000.00819.03
8.2.70.0060.00317.93
8.2.60.0030.00618.34
8.2.50.0060.00319.21
8.2.40.0080.00019.90
8.2.30.0040.00418.07
8.2.20.0040.00420.46
8.2.10.0040.00418.02
8.2.00.0090.00019.21
8.1.340.0160.00819.94
8.1.330.0120.00721.84
8.1.320.0120.00816.36
8.1.310.0040.01517.00
8.1.300.0000.00918.63
8.1.290.0070.00330.84
8.1.280.0130.00325.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00819.00
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0000.00917.47
8.1.180.0070.00019.02
8.1.170.0000.00818.82
8.1.160.0000.00718.79
8.1.150.0040.00418.80
8.1.140.0070.00017.61
8.1.130.0030.00318.91
8.1.120.0000.00717.63
8.1.110.0040.00417.50
8.1.100.0000.00817.56
8.1.90.0070.00017.66
8.1.80.0040.00417.65
8.1.70.0050.00217.66
8.1.60.0040.00417.66
8.1.50.0100.00717.53
8.1.40.0110.00817.53
8.1.30.0170.00817.75
8.1.20.0190.00617.78
8.1.10.0150.01017.69
8.1.00.0220.00417.65
8.0.300.0000.00719.69
8.0.290.0000.00816.88
8.0.280.0080.00018.40
8.0.270.0030.00318.11
8.0.260.0030.00318.34
8.0.250.0000.00917.02
8.0.240.0030.00316.98
8.0.230.0050.00217.09
8.0.220.0000.00716.95
8.0.210.0040.00417.06
8.0.200.0080.00017.00
8.0.190.0030.00517.05
8.0.180.0170.00316.97
8.0.170.0130.00516.94
8.0.160.0140.00216.97
8.0.150.0100.00816.83
8.0.140.0150.00216.86
8.0.130.0130.00516.90
8.0.120.0160.00516.99
8.0.110.0120.00616.91
8.0.100.0130.00716.84
8.0.90.0110.00917.01
8.0.80.0160.00617.01
8.0.70.0160.00616.92
8.0.60.0160.00616.85
8.0.50.0160.00516.94
8.0.30.0110.00916.96
8.0.20.0140.00517.00
8.0.10.0170.00417.16
7.4.330.0000.00515.55
7.4.320.0030.00316.82
7.4.300.0040.00416.75
7.4.290.0030.00616.73
7.4.280.0150.00616.66
7.4.270.0110.00416.57
7.4.260.0170.00016.69
7.4.250.0160.00316.64
7.4.240.0150.00616.66
7.4.230.0150.01016.71
7.4.220.0150.00616.76
7.4.210.0150.00516.70
7.4.200.0170.00416.78
7.4.190.0140.00416.54
7.4.180.0150.00516.79
7.4.160.0170.00416.74
7.4.150.0140.00716.78
7.4.140.0120.00916.66
7.4.130.0150.00416.41
7.4.120.0160.00216.61
7.4.110.0170.00016.54
7.4.100.0120.00716.54
7.4.90.0110.00416.67
7.4.80.0160.00416.76
7.4.70.0140.00316.79
7.4.60.0080.01016.65
7.4.50.0100.00616.44
7.4.40.0060.00716.42
7.4.30.0060.00616.55
7.4.20.0110.00416.60
7.4.10.0110.00116.49
7.4.00.0140.00116.59

preferences:
30.29 ms | 403 KiB | 5 Q