3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'Audi MODEL 80 ENGINE 1.9 TDi POWER 90Hk TORQUE 202Nm GEAR man DRIVE 2wd YEAR 1996', 'Audi MODEL 80 ENGINE 1.9 TDi YEAR 1996 NOTE this engine needs custom stage GEAR auto', 'Audi MODEL 80 ENGINE 1.9 TDi GEAR man YEAR 1996', 'Audi MODEL 80 ENGINE 1.9 TDi YEAR 1996 DRIVE 2wd' ]; foreach ($strings as $string) { preg_match_all('/\b([A-Z]+)\s+(\S+(?:\s+\S+)*?)(?=$|\s+[A-Z]+\b)/', 'MAKE ' . $string, $m, PREG_SET_ORDER); var_export(array_column($m, 2, 1)); echo "\n---\n"; }

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.0090.01120.71
8.4.110.0130.00818.94
8.4.100.0110.00917.88
8.4.90.0090.00817.93
8.4.80.0120.00617.89
8.4.70.0080.01418.40
8.4.60.0130.00818.93
8.4.50.0130.00722.70
8.4.40.0160.00320.71
8.4.30.0100.01020.63
8.4.20.0100.00619.70
8.4.10.0120.00422.03
8.3.250.0150.00418.82
8.3.240.0060.00216.69
8.3.230.0070.01316.76
8.3.220.0120.00617.12
8.3.210.0080.00518.58
8.3.200.0030.00616.86
8.3.190.0090.00517.36
8.3.180.0130.00716.64
8.3.170.0140.00717.07
8.3.160.0050.00320.28
8.3.150.0090.00916.82
8.3.140.0080.00017.05
8.3.130.0040.00718.49
8.3.120.0110.00018.99
8.3.110.0030.00518.36
8.3.100.0080.00016.77
8.3.90.0050.00226.77
8.3.80.0060.00318.31
8.3.70.0110.00718.33
8.3.60.0060.01218.39
8.3.50.0110.00716.72
8.3.40.0070.00720.47
8.3.30.0040.01118.69
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0050.00520.07
8.2.280.0050.00418.45
8.2.270.0110.00717.19
8.2.260.0000.00819.01
8.2.250.0030.00616.85
8.2.240.0160.00319.16
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0090.00326.77
8.2.200.0030.00616.75
8.2.190.0170.00018.42
8.2.180.0060.00925.92
8.2.170.0090.00919.21
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0030.00722.27
8.2.100.0040.00817.97
8.2.90.0050.00317.97
8.2.80.0030.00617.97
8.2.70.0050.00317.92
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0040.00419.43
8.2.30.0030.00618.18
8.2.20.0160.00317.74
8.2.10.0130.00317.70
8.2.00.0090.00417.79
8.1.330.0080.01116.78
8.1.320.0070.01316.43
8.1.310.0080.00020.18
8.1.300.0090.00917.97
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0090.00024.66
8.1.260.0050.00226.35
8.1.250.0090.00028.09
8.1.240.0060.00322.19
8.1.230.0000.01121.04
8.1.220.0030.00517.74
8.1.210.0000.00818.91
8.1.200.0000.01117.47
8.1.190.0040.00417.35
8.1.180.0040.00718.10
8.1.170.0100.00018.70
8.1.160.0030.00518.91
8.1.150.0120.00217.46
8.1.140.0030.00917.56
8.1.130.0130.00417.61
8.1.120.0110.00617.54
8.1.110.0140.00417.62
8.1.100.0110.00417.59
8.1.90.0080.00417.61
8.1.80.0080.00417.57
8.1.70.0060.00917.66
8.1.60.0130.00717.79
8.1.50.0130.00617.74
8.1.40.0160.00317.66
8.1.30.0110.00717.86
8.1.20.0120.00317.81
8.1.10.0040.01117.55
8.1.00.0120.00317.62
8.0.300.0070.00020.13
8.0.290.0030.00616.88
8.0.280.0070.00018.34
8.0.270.0040.00916.82
8.0.260.0030.01016.94
8.0.250.0060.00316.93
8.0.240.0100.00016.89
8.0.230.0050.00517.07
8.0.220.0060.00416.84
8.0.210.0090.00016.84
8.0.200.0030.00716.92
8.0.190.0120.00016.93
8.0.180.0090.00516.94
8.0.170.0070.00416.88
8.0.160.0040.00716.92
8.0.150.0040.00716.95
8.0.140.0080.00816.96
8.0.130.0140.00517.00
8.0.120.0090.00516.97
8.0.110.0050.00516.94
8.0.100.0060.00616.87
8.0.90.0160.00017.00
8.0.80.0050.00917.07
8.0.70.0080.00416.95
8.0.60.0050.01016.93
8.0.50.0130.00416.50
8.0.30.0050.01117.00
8.0.20.0140.00517.03
8.0.10.0140.00316.96

preferences:
28.36 ms | 403 KiB | 5 Q