3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '~ function #function keyword \s+ #any number of whitespaces (?P<function_name>.*?) #function name itself \s* #optional white spaces (?P<parameters>\(.*?\)) #function parameters \s* #optional white spaces (?P<body>\{.*?\}) #body of a function ~six'; preg_match_all($regex, 'printr(abc,assdd)', $matches) print_r($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)
5.4.230.0210.06112.38
5.4.220.0090.04112.38
5.4.210.0140.04312.38
5.4.200.0150.05412.38
5.4.190.0130.04412.37
5.4.180.0120.04612.37
5.4.170.0140.04312.38
5.4.160.0130.04512.37
5.4.150.0140.04312.37
5.4.140.0180.05612.06
5.4.130.0130.04312.04
5.4.120.0120.04412.01
5.4.110.0110.04012.00
5.4.100.0120.04012.00
5.4.90.0110.04112.00
5.4.80.0120.04212.00
5.4.70.0120.03711.99
5.4.60.0130.05212.00
5.4.50.0100.05212.00
5.4.40.0130.04711.98
5.4.30.0140.05011.98
5.4.20.0120.04911.98
5.4.10.0170.05611.98
5.4.00.0090.03911.47
5.3.280.0140.04112.71
5.3.270.0120.04412.72
5.3.260.0120.04512.72
5.3.250.0140.04712.72
5.3.240.0150.04412.72
5.3.230.0130.04612.71
5.3.220.0130.04912.68
5.3.210.0150.04712.68
5.3.200.0090.05012.68
5.3.190.0140.05112.68
5.3.180.0140.06312.67
5.3.170.0130.04612.67
5.3.160.0110.05212.67
5.3.150.0120.04912.67
5.3.140.0130.04212.66
5.3.130.0100.04412.66
5.3.120.0110.04312.66
5.3.110.0120.04112.65
5.3.100.0120.04112.12
5.3.90.0140.03712.08
5.3.80.0110.04512.08
5.3.70.0100.04712.07
5.3.60.0150.05012.06
5.3.50.0140.03712.00
5.3.40.0110.04112.00
5.3.30.0120.03811.94
5.3.20.0120.03811.71
5.3.10.0110.03911.68
5.3.00.0100.04011.67

preferences:
140.31 ms | 1394 KiB | 7 Q