3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/{{' . '(?P<directiveName>[a-z]+)(?:[\s\t]*)' . '(?:\s*(?P<quoteType>[\'"])(?P<value>(?:(?!\k\'quoteType\').)*?)(?<!\\\)\k\'quoteType\')?' . '(?P<parameters>.*?)' . '(?P<filters>(?:\|[a-z0-9:_-]+)+)?' . '}}' . '(?:(?P<content>.*?){{\/(?P=directiveName)}})?' . '/si'; echo PHP_EOL . $pattern . 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.10.0110.00716.81
8.5.00.0150.00920.18
8.4.160.0130.01023.57
8.4.150.0090.00415.44
8.4.140.0180.00917.73
8.4.130.0120.00817.75
8.4.120.0110.00822.21
8.4.110.0130.00618.85
8.4.100.0140.00617.67
8.4.90.0120.00717.64
8.4.80.0330.01018.75
8.4.70.0420.00717.43
8.4.60.0400.01017.57
8.4.50.0390.01117.88
8.4.40.0470.00617.25
8.4.30.0430.00917.48
8.4.20.0280.01017.19
8.4.10.0440.00717.47
8.3.280.0100.00516.26
8.3.270.0120.00716.61
8.3.260.0070.01116.53
8.3.250.0120.00916.86
8.3.240.0100.00816.53
8.3.230.0090.01016.77
8.3.220.0270.00918.90
8.3.210.0360.01316.84
8.3.200.0250.00416.84
8.3.190.0330.00816.84
8.3.180.0380.00816.84
8.3.170.0420.00916.84
8.3.160.0280.00616.84
8.3.150.0160.00716.84
8.3.140.0200.00316.84
8.3.130.0370.00416.84
8.3.120.0340.01216.84
8.3.110.0350.00416.84
8.3.100.0250.00416.84
8.3.90.0240.00116.84
8.3.80.0240.00816.84
8.3.70.0300.00316.84
8.3.60.0270.00716.84
8.3.50.0360.00816.84
8.3.40.0370.01017.33
8.3.30.0320.00517.65
8.3.20.0330.00617.23
8.3.10.0320.00817.48
8.3.00.0150.00919.32
8.2.290.0050.00418.98
8.2.280.0330.00716.84
8.2.270.0360.00616.84
8.2.260.0300.01316.84
8.2.250.0300.01316.84
8.2.240.0350.00916.84
8.2.230.0340.00716.84
8.2.220.0340.00816.84
8.2.210.0330.00916.84
8.2.200.0310.01216.84
8.2.190.0280.00616.84
8.2.180.0220.00616.84
8.2.170.0380.00517.61
8.2.160.0380.00717.68
8.2.150.0380.00717.45
8.2.140.0390.00617.14
8.2.130.0400.00617.42
8.2.120.0330.01317.41
8.2.110.0350.01017.54
8.2.100.0380.00917.52
8.2.90.0410.00717.62
8.2.80.0330.00717.32
8.2.70.0340.01017.48
8.2.60.0380.00617.52
8.2.50.0340.01217.61
8.2.40.0360.00517.64
8.2.30.0330.00617.57
8.2.20.0170.00417.52
8.2.10.0160.00317.55
8.2.00.0230.00317.52

preferences:
57.62 ms | 403 KiB | 5 Q