3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Chat { public static function linkifyMessage($message) { $threadUrl = "http://forum.freewar.de/viewtopic.php?"; $threadPattern = "@".preg_quote($threadUrl)."f=(\d+)&t=(\d+)((&p=(\d+)(#p(\d+))?)|&view=unread(#unread)?)?@i"; preg_match_all($threadPattern, $message, $matches, PREG_SET_ORDER); return $message; } } $start = microtime(1); for($i = 0; $i < 10; $i++) { Chat::linkifyMessage('Guckt mal das Update: http://forum.freewar.de/viewtopic.php?f=8&t=52663'); } echo $i; echo "\n"; echo (microtime(1) - $start) / $i;
Output for 5.4.16, 7.1.0
10 1.2302398681641E-5
Output for 7.0.14
10 1.4305114746094E-5
Output for 7.0.6
10 2.0790100097656E-5
Output for 5.3.28, 7.0.5
10 1.4996528625488E-5
Output for 7.0.4
10 1.0204315185547E-5
Output for 7.0.3
10 1.5497207641602E-5
Output for 5.3.18, 5.4.9, 7.0.2
10 1.1491775512695E-5
Output for 7.0.1
10 1.5997886657715E-5
Output for 7.0.0
10 9.4890594482422E-6
Output for 5.6.28
10 9.2029571533203E-6
Output for 5.6.21
10 8.8930130004883E-6
Output for 5.5.30, 5.6.20
10 7.4148178100586E-6
Output for 5.6.19
10 7.4863433837891E-6
Output for 5.6.18
10 6.3180923461914E-6
Output for 5.6.17
10 6.7949295043945E-6
Output for 5.5.32, 5.6.16
10 6.0081481933594E-6
Output for 5.6.15
10 8.6069107055664E-6
Output for 5.6.14
10 7.2002410888672E-6
Output for 5.6.13
10 8.9883804321289E-6
Output for 5.6.12
10 5.6028366088867E-6
Output for 5.6.11
10 7.9870223999023E-6
Output for 5.6.10
10 8.5115432739258E-6
Output for 5.6.9
10 8.082389831543E-6
Output for 5.6.8
10 6.6995620727539E-6
Output for 5.6.7
10 7.2956085205078E-6
Output for 5.5.35
10 7.1048736572266E-6
Output for 5.5.34
10 5.793571472168E-6
Output for 5.5.33
10 9.1075897216797E-6
Output for 5.5.31
10 6.1988830566406E-6
Output for 5.5.29
10 8.4877014160156E-6
Output for 5.5.28
10 8.392333984375E-6
Output for 5.5.27
10 5.4836273193359E-6
Output for 5.5.26
10 8.2969665527344E-6
Output for 5.5.25
10 7.7962875366211E-6
Output for 5.5.24
10 5.5074691772461E-6
Output for 5.3.12, 5.4.19, 5.4.45
10 1.1396408081055E-5
Output for 5.4.44
10 2.2983551025391E-5
Output for 5.4.43
10 1.9598007202148E-5
Output for 5.3.21, 5.3.24, 5.4.42
10 1.2707710266113E-5
Output for 5.4.41
10 1.1992454528809E-5
Output for 5.3.10, 5.4.40
10 1.4901161193848E-5
Output for 5.4.39
10 1.9001960754395E-5
Output for 5.4.38
10 2.1505355834961E-5
Output for 5.4.37
10 0.00034990310668945
Output for 5.4.36
10 2.0909309387207E-5
Output for 5.4.14, 5.4.35
10 1.1205673217773E-5
Output for 5.4.34
10 1.5902519226074E-5
Output for 5.4.32
10 1.0395050048828E-5
Output for 5.4.31
10 1.3208389282227E-5
Output for 5.4.30
10 1.2111663818359E-5
Output for 5.4.29
10 1.0895729064941E-5
Output for 5.4.28
10 7.9154968261719E-6
Output for 5.4.11, 5.4.27
10 1.2803077697754E-5
Output for 5.3.6, 5.4.26
10 1.0800361633301E-5
Output for 5.4.25
10 1.7189979553223E-5
Output for 5.3.15, 5.3.19, 5.4.24
10 1.2588500976562E-5
Output for 5.4.0, 5.4.23
10 1.1515617370605E-5
Output for 5.2.17, 5.4.22
10 1.3089179992676E-5
Output for 5.3.14, 5.4.21
10 1.3899803161621E-5
Output for 5.4.20
10 1.6188621520996E-5
Output for 5.4.18
10 1.2087821960449E-5
Output for 5.2.3, 5.2.11, 5.4.17
10 1.2397766113281E-5
Output for 5.2.14 - 5.2.15, 5.3.2, 5.4.15
10 1.220703125E-5
Output for 5.4.13
10 2.3317337036133E-5
Output for 5.4.10, 5.4.12
10 1.680850982666E-5
Output for 5.3.7, 5.4.8
10 1.2493133544922E-5
Output for 5.4.2, 5.4.6 - 5.4.7
10 1.1301040649414E-5
Output for 5.4.5
10 1.1682510375977E-5
Output for 5.4.4
10 1.1277198791504E-5
Output for 5.4.3
10 1.227855682373E-5
Output for 5.4.1
10 1.1110305786133E-5
Output for 5.3.29
10 1.0991096496582E-5
Output for 5.3.9, 5.3.27
10 1.1610984802246E-5
Output for 5.2.2, 5.2.16, 5.3.16, 5.3.22, 5.3.26
10 1.1587142944336E-5
Output for 5.2.8 - 5.2.9, 5.3.25
10 1.1801719665527E-5
Output for 5.3.23
10 1.3494491577148E-5
Output for 5.3.20
10 1.5807151794434E-5
Output for 5.3.17
10 1.3017654418945E-5
Output for 5.2.7, 5.3.13
10 1.3399124145508E-5
Output for 5.2.13, 5.3.4, 5.3.8, 5.3.11
10 1.1706352233887E-5
Output for 5.3.5
10 1.1897087097168E-5
Output for 5.3.3
10 1.1086463928223E-5
Output for 5.3.1
10 1.060962677002E-5
Output for 5.3.0
10 1.2612342834473E-5
Output for 5.2.12
10 1.2993812561035E-5
Output for 5.2.10
10 9.2983245849609E-6
Output for 5.2.5 - 5.2.6
10 1.2779235839844E-5
Output for 5.2.4
10 1.4090538024902E-5
Output for 5.2.1
10 1.1301040649414E-05
Output for 5.0.4, 5.2.0
10 1.2493133544922E-05
Output for 5.1.6
10 1.1396408081055E-05
Output for 5.1.5
10 1.1086463928223E-05
Output for 5.1.4
10 1.2397766113281E-05
Output for 5.1.3
10 1.1587142944336E-05
Output for 5.1.2
10 1.3494491577148E-05
Output for 5.1.1
10 1.1897087097168E-05
Output for 5.1.0
10 1.2993812561035E-05
Output for 5.0.5
10 1.5497207641602E-05
Output for 5.0.3
10 1.838207244873E-05
Output for 5.0.2
10 1.8906593322754E-05
Output for 5.0.1
10 1.6498565673828E-05
Output for 5.0.0
10 9.2029571533203E-06
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/ZuYEv on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/ZuYEv on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/ZuYEv on line 4
Process exited with code 255.