3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'SELECT * from `foo` WHERE `foo_id` > 0 LIMIT 5'; $regex = '/ (?P<more1>.*?) (?:WHERE\s+ (?P<where>(?:.(?!GROUP BY|HAVING|ORDER BY|LIMIT))+) )? # removing the ? will capture (?P<more2>.*) /imsx'; \preg_match($regex, $str, $matches); var_dump($matches);

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.00.0110.00920.24
8.4.150.0020.00014.05
8.4.140.0160.00517.70
8.4.130.0140.00618.63
8.4.120.0070.00619.54
8.4.110.0140.00622.22
8.4.100.0070.00218.14
8.4.90.0140.00620.63
8.4.80.0130.00819.04
8.4.70.0080.00818.84
8.4.60.0140.00622.13
8.4.50.0140.00918.28
8.4.40.0120.00919.47
8.4.30.0160.00018.73
8.4.20.0030.00619.99
8.4.10.0120.00319.53
8.3.280.0100.01018.64
8.3.270.0160.00516.77
8.3.260.0110.00816.70
8.3.250.0090.00416.68
8.3.240.0140.00816.59
8.3.230.0090.01116.59
8.3.220.0050.00319.01
8.3.210.0090.00916.79
8.3.200.0080.00316.86
8.3.190.0070.00817.25
8.3.180.0090.00918.86
8.3.170.0070.01116.45
8.3.160.0150.00418.55
8.3.150.0150.00417.01
8.3.140.0150.00416.65
8.3.130.0060.00316.81
8.3.120.0090.00020.58
8.3.110.0030.00520.94
8.3.100.0120.00316.82
8.3.90.0390.00726.77
8.3.80.0390.01326.77
8.3.70.0480.00926.77
8.3.60.0330.01626.77
8.3.50.0410.00726.77
8.3.40.0430.00026.77
8.3.30.0360.00326.77
8.3.20.0240.01526.77
8.3.10.0400.00426.77
8.3.00.0330.00826.77
8.2.290.0120.00516.82
8.2.280.0060.01018.54
8.2.270.0150.00317.18
8.2.260.0040.00418.48
8.2.250.0000.01416.69
8.2.240.0170.00317.29
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0320.00426.77
8.2.200.0370.00726.77
8.2.190.0180.01826.77
8.2.180.0340.00626.77
8.2.170.0330.00626.77
8.2.160.0440.00626.77
8.2.150.0390.00626.77
8.2.140.0370.00626.77
8.2.130.0420.00326.77
8.2.120.0370.00626.77
8.2.110.0300.01326.77
8.2.100.0350.00626.77
8.2.90.0240.01826.77
8.2.80.0230.01926.77
8.2.70.0330.01026.77
8.2.60.0380.00326.77
8.2.50.0400.00426.77
8.2.40.0290.01126.77
8.2.30.0400.00426.77
8.2.20.0200.01026.77
8.2.10.0140.00626.77
8.2.00.0260.00626.77
8.1.330.0110.00816.45
8.1.320.0140.00518.15
8.1.310.0080.00016.60
8.1.300.0040.00419.97
8.1.290.0160.00626.77
8.1.280.0150.00326.77
8.1.270.0200.00026.77
8.1.260.0160.00826.77
8.1.250.0360.00826.77
8.1.240.0300.01126.77
8.1.230.0150.01526.77
8.1.220.0330.00726.77
8.1.210.0360.00026.77
8.1.200.0240.00626.77
8.1.190.0310.00626.77
8.1.180.0340.00326.77
8.1.170.0340.00926.77
8.1.160.0420.01026.77
8.1.150.0350.00326.77
8.1.140.0250.01326.77
8.1.130.0350.00326.77
8.1.120.0270.01226.77
8.1.110.0260.01126.77
8.1.100.0300.00726.77
8.1.90.0300.00826.77
8.1.80.0310.00626.77
8.1.70.0230.01526.77
8.1.60.0320.01026.77
8.1.50.0370.00626.77
8.1.40.0350.00626.77
8.1.30.0340.00426.77
8.1.20.0430.00426.77
8.1.10.0400.00626.77
8.1.00.0300.01226.77

preferences:
33.17 ms | 403 KiB | 5 Q