3v4l.org

run code in 300+ PHP versions simultaneously
<?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); foreach($matches as $match) { $message = str_replace($match[0], "<a href='{$match[0]}' target='_blank'>{$match[0]}</a>", $message); } return $message; } } $start = microtime(1); for($i = 0; $i < 100; $i++) { Chat::linkifyMessage('Guckt mal das Update: http://forum.freewar.de/viewtopic.php?f=8&t=52663'); } echo (microtime(1) - $start) / $i;

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)
7.3.120.0100.01014.57
7.3.110.0080.00815.24
7.3.100.0060.00314.98
7.3.90.0000.01415.04
7.3.80.0100.00315.14
7.3.70.0030.01414.95
7.3.60.0060.00315.03
7.3.50.0090.00614.99
7.3.40.0060.00914.69
7.3.30.0030.01015.02
7.3.20.0090.00616.84
7.3.10.0070.00716.68
7.3.00.0070.01116.97
7.2.240.0100.01015.21
7.2.230.0000.01614.97
7.2.220.0080.00815.05
7.2.210.0100.00315.28
7.2.200.0030.01314.82
7.2.190.0090.00615.22
7.2.180.0040.01115.38
7.2.170.0030.01015.22
7.2.160.0070.01015.26
7.2.150.0060.00616.63
7.2.140.0060.00617.13
7.2.130.0060.00617.05
7.2.120.0090.00617.05
7.2.110.0040.00817.14
7.2.100.0100.00617.00
7.2.90.0040.01117.23
7.2.80.0070.00717.05
7.2.70.0000.01417.28
7.2.60.0030.01217.22
7.2.50.0040.00416.92
7.2.40.0110.00417.15
7.2.30.0060.00916.92
7.2.20.0030.00617.17
7.2.10.0070.00717.09
7.2.00.0070.00718.36
7.1.330.0040.01516.00
7.1.320.0070.00715.88
7.1.310.0000.01315.72
7.1.300.0000.00915.96
7.1.290.0000.01216.13
7.1.280.0070.01115.84
7.1.270.0040.01116.02
7.1.260.0060.00915.71
7.1.250.0060.00915.82
7.1.70.0030.00517.30
7.1.60.0140.01019.43
7.1.50.0110.01517.17
7.1.00.0000.03722.42
7.0.200.0000.01017.07
7.0.140.0000.08022.05
7.0.60.0100.06719.95
7.0.50.0170.07317.88
7.0.40.0100.06720.07
7.0.30.0200.04020.27
7.0.20.0170.08320.07
7.0.10.0330.08320.32
7.0.00.0070.05320.17
5.6.280.0030.07320.92
5.6.210.0130.07020.57
5.6.200.0100.06318.16
5.6.190.0200.05320.55
5.6.180.0170.04020.47
5.6.170.0330.07720.55
5.6.160.0030.04320.52
5.6.150.0070.08318.25
5.6.140.0130.07718.14
5.6.130.0130.07718.22
5.6.120.0170.07320.99
5.6.110.0170.07720.89
5.6.100.0070.06321.14
5.6.90.0170.07321.10
5.6.80.0000.08320.41
5.6.70.0270.08020.40
5.5.350.0100.08020.33
5.5.340.0070.05718.02
5.5.330.0130.08020.27
5.5.320.0170.08320.36
5.5.310.0370.07020.30
5.5.300.0100.08018.03
5.5.290.0130.06017.95
5.5.280.0030.04020.96
5.5.270.0100.08320.80
5.5.260.0070.07020.65
5.5.250.0130.08020.62
5.5.240.0030.07320.06
5.4.450.3800.03719.55
5.4.440.3130.03319.52
5.4.430.0300.07319.52
5.4.420.0270.07719.47
5.4.410.0270.08019.42
5.4.400.0270.06019.16
5.4.390.0130.05318.85
5.4.380.0270.07019.22
5.4.370.0300.07019.14
5.4.360.0070.06318.85
5.4.350.0300.04319.07
5.4.340.0270.07019.16
5.4.320.0270.06319.09
5.4.310.0230.04019.07
5.4.300.0230.05019.16
5.4.290.0230.05319.08
5.4.280.0230.03719.24
5.4.270.0300.06319.22
5.4.260.0000.06019.09
5.4.250.0570.05719.09
5.4.240.0270.07319.13
5.4.230.0300.06719.31
5.4.220.0370.06019.13
5.4.210.0270.06019.21
5.4.200.0370.06019.24
5.4.190.0300.03319.05
5.4.180.0370.07018.98
5.4.170.0170.04718.86
5.4.160.0400.05718.93
5.4.150.0230.04719.20
5.4.140.0230.03716.48
5.4.130.0230.04016.55
5.4.120.0330.06316.36
5.4.110.0270.07316.61
5.4.100.0330.06716.56
5.4.90.0270.07316.51
5.4.80.0330.06716.22
5.4.70.0300.05716.49
5.4.60.0230.04316.25
5.4.50.0270.05716.24
5.4.40.0330.06716.24
5.4.30.0270.04016.25
5.4.20.0270.03316.23
5.4.10.0330.06316.43
5.4.00.0270.07315.81
5.3.290.0230.03714.64
5.3.280.0300.06314.59
5.3.270.0330.03314.63
5.3.260.0330.06714.58
5.3.250.0200.04314.53
5.3.240.0200.05314.52
5.3.230.0300.07014.51
5.3.220.0400.06314.64
5.3.210.0300.03314.66
5.3.200.0230.07314.49
5.3.190.0270.05314.54
5.3.180.0330.04314.72
5.3.170.0370.06714.72
5.3.160.0400.04014.58
5.3.150.0370.05714.59
5.3.140.0230.04014.58
5.3.130.0300.06314.64
5.3.120.0270.03714.52
5.3.110.0230.04014.57
5.3.100.0300.04714.05
5.3.90.0330.06314.18
5.3.80.0270.04714.11
5.3.70.0300.03314.04
5.3.60.0330.07014.05
5.3.50.0300.07013.95
5.3.40.0400.06313.96
5.3.30.0270.03313.89
5.3.20.0300.06713.78
5.3.10.0270.03313.66
5.3.00.0330.06313.54
5.2.170.0300.05711.15
5.2.160.0300.05311.38
5.2.150.0300.05311.18
5.2.140.0200.04711.31
5.2.130.0330.05311.04
5.2.120.0170.03311.02
5.2.110.0300.06011.00
5.2.100.0170.04011.07
5.2.90.0330.05011.29
5.2.80.0200.03311.07
5.2.70.0270.04011.01
5.2.60.0200.04310.97
5.2.50.0330.05010.93
5.2.40.0200.03711.00
5.2.30.0300.05710.98
5.2.20.0200.05711.05
5.2.10.0230.05710.96
5.2.00.0300.04310.65
5.1.60.0200.0409.89
5.1.50.0170.03010.08
5.1.40.0200.02310.04
5.1.30.0300.04310.41
5.1.20.0170.03310.48
5.1.10.0230.0479.97
5.1.00.0270.05010.06
5.0.50.0130.0309.73
5.0.40.0100.0309.73
5.0.30.0130.0639.73
5.0.20.0130.0409.73
5.0.10.0130.0339.73
5.0.00.0170.0439.73
4.4.90.0100.0209.73
4.4.80.0070.0279.73
4.4.70.0100.0239.73
4.4.60.0130.0339.73
4.4.50.0130.0309.73
4.4.40.0100.0279.73
4.4.30.0070.0179.73
4.4.20.0130.0179.73
4.4.10.0100.0379.73
4.4.00.0130.0509.73
4.3.110.0130.0309.73
4.3.100.0130.0139.73
4.3.90.0130.0309.73
4.3.80.0100.0539.73
4.3.70.0170.0379.73
4.3.60.0070.0239.73
4.3.50.0130.0339.73
4.3.40.0100.0439.73
4.3.30.0070.0309.73
4.3.20.0070.0179.73
4.3.10.0030.0179.73
4.3.00.0070.0279.73

preferences:
43.29 ms | 401 KiB | 5 Q