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); 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;

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.2.00.0070.01019.82
7.1.70.0060.00617.55
7.1.60.0060.00617.57
7.1.50.0070.01617.10
7.1.00.0030.05722.45
7.0.200.0070.01016.92
7.0.140.0030.07322.16
7.0.60.0100.08319.84
7.0.50.0030.08317.91
7.0.40.0130.04020.43
7.0.30.0300.07020.26
7.0.20.0370.05320.10
7.0.10.0070.09320.14
7.0.00.0100.04320.08
5.6.280.0030.07321.02
5.6.210.0030.09320.47
5.6.200.0030.07018.30
5.6.190.0130.07720.52
5.6.180.0270.05320.63
5.6.170.0230.04720.46
5.6.160.0100.04720.49
5.6.150.0070.08318.16
5.6.140.0100.06018.28
5.6.130.0100.08718.18
5.6.120.0030.04321.04
5.6.110.0200.06321.02
5.6.100.0170.07720.86
5.6.90.0200.07721.00
5.6.80.0100.04720.51
5.6.70.4430.04020.38
5.5.350.0070.08020.35
5.5.340.0100.03717.94
5.5.330.0070.05020.19
5.5.320.0170.05020.25
5.5.310.0230.04720.26
5.5.300.0030.08017.98
5.5.290.0170.07018.01
5.5.280.0170.07320.77
5.5.270.0100.03320.98
5.5.260.0170.07320.83
5.5.250.0130.07320.55
5.5.240.0030.03720.26
5.4.450.0670.05019.58
5.4.440.0600.05719.52
5.4.430.0130.04719.53
5.4.420.0130.05719.21
5.4.410.0070.06019.41
5.4.400.0130.05019.22
5.4.390.0130.05319.09
5.4.380.0100.06319.14
5.4.370.0130.05018.98
5.4.360.0070.06019.11
5.4.350.0040.03912.02
5.4.340.0120.03912.01
5.4.320.0090.04312.50
5.4.310.0060.03812.50
5.4.300.0080.04012.50
5.4.290.0060.04512.50
5.4.280.0090.03212.39
5.4.270.0080.04312.39
5.4.260.0080.04412.40
5.4.250.0100.04112.39
5.4.240.0070.07318.96
5.4.230.0030.05018.77
5.4.220.0000.05719.01
5.4.210.0130.05718.95
5.4.200.0070.04718.85
5.4.190.0030.08318.90
5.4.180.0170.06318.88
5.4.170.0000.05318.73
5.4.160.0030.05718.95
5.4.150.0100.05018.95
5.4.140.0030.05016.26
5.4.130.0000.05016.41
5.4.120.0070.06716.32
5.4.110.0070.04716.44
5.4.100.0000.05316.63
5.4.90.0070.04316.47
5.4.80.0070.04316.61
5.4.70.0000.07716.45
5.4.60.0130.05016.62
5.4.50.0030.07316.39
5.4.40.0100.06016.48
5.4.30.0030.05016.51
5.4.20.0030.05716.47
5.4.10.0070.06716.42
5.4.00.0070.04315.96
5.3.290.0070.04412.80
5.3.280.0070.05014.68
5.3.270.0130.06014.77
5.3.260.0000.05314.69
5.3.250.0030.05014.62
5.3.240.0000.05714.59
5.3.230.0030.05014.50
5.3.220.0100.04714.40
5.3.210.0070.05314.40
5.3.200.0100.04714.65
5.3.190.0070.05014.75
5.3.180.0100.05014.47
5.3.170.0030.04714.55
5.3.160.0100.05714.74
5.3.150.0070.07314.70
5.3.140.0000.07014.62
5.3.130.0030.06714.68
5.3.120.0070.06014.57
5.3.110.0070.05014.53
5.3.100.0030.06714.01
5.3.90.0130.05714.00
5.3.80.0070.05314.02
5.3.70.0130.04014.10
5.3.60.0100.04714.09
5.3.50.0100.04313.93
5.3.40.0070.05013.86
5.3.30.0200.04714.13
5.3.20.0070.04313.88
5.3.10.0030.06313.64
5.3.00.0030.07013.72
5.2.170.0070.05011.06
5.2.160.0000.04011.13
5.2.150.0100.04711.21
5.2.140.0030.04711.13
5.2.130.0030.04010.93
5.2.120.0100.04711.00
5.2.110.0100.04011.19
5.2.100.0070.04011.16
5.2.90.0000.05011.18
5.2.80.0030.04311.16
5.2.70.0030.05311.27
5.2.60.0000.04311.23
5.2.50.0000.05011.11
5.2.40.0000.05011.19
5.2.30.0030.04311.04
5.2.20.0030.04011.18
5.2.10.0070.03310.69
5.2.00.0070.04010.80
5.1.60.0030.03710.15
5.1.50.0000.03710.24
5.1.40.0030.0479.94
5.1.30.0070.03310.30
5.1.20.0000.03710.54
5.1.10.0070.04310.27
5.1.00.0000.04010.10
5.0.50.0030.0278.64
5.0.40.0000.0308.42
5.0.30.0030.0538.23
5.0.20.0100.0238.13
5.0.10.0030.0278.41
5.0.00.0000.0438.11
4.4.90.0000.0236.50
4.4.80.0030.0206.50
4.4.70.0000.0236.50
4.4.60.0030.0206.50
4.4.50.0000.0236.50
4.4.40.0000.0376.50
4.4.30.0000.0276.50
4.4.20.0030.0206.50
4.4.10.0000.0206.50
4.4.00.0030.0336.50
4.3.110.0000.0236.50
4.3.100.0000.0236.50
4.3.90.0030.0276.50
4.3.80.0030.0336.50
4.3.70.0000.0236.50
4.3.60.0030.0176.50
4.3.50.0000.0276.50
4.3.40.0030.0376.50
4.3.30.0030.0306.50
4.3.20.0000.0276.50
4.3.10.0070.0206.50
4.3.00.0130.0276.91

preferences:
34.77 ms | 400 KiB | 5 Q