3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt='A B C ()'; $re1='.*?'; # Non-greedy match on filler $re2='(\\s+)'; # White Space 1 $re3='.*?'; # Non-greedy match on filler $re4='(\\(.*\\))'; # Round Braces 1 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches)) { $ws1=$matches[1][0]; $rbraces1=$matches[2][0]; print "($ws1) ($rbraces1) \n";

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.260.0330.06318.92
5.4.250.0470.06319.09
5.4.240.0430.05719.05
5.4.230.0330.04319.07
5.4.220.0330.05319.13
5.4.210.0400.04019.05
5.4.200.0430.06319.05
5.4.190.0430.03319.13
5.4.180.0370.04719.08
5.4.170.0300.06319.07
5.4.160.0330.03318.79
5.4.150.0530.03319.21
5.4.140.0470.05716.44
5.4.130.0500.05316.38
5.4.120.0430.06316.45
5.4.110.0300.07316.19
5.4.100.0500.05716.41
5.4.90.0330.04316.39
5.4.80.0330.03316.48
5.4.70.0400.05016.29
5.4.60.0330.06716.28
5.4.50.0330.05016.43
5.4.40.0430.04016.19
5.4.30.0400.05316.41
5.4.20.0400.04316.43
5.4.10.0330.04316.28
5.4.00.0430.06015.70
5.3.280.0330.06014.54
5.3.270.0370.07014.52
5.3.260.0400.04714.55
5.3.250.0370.04314.55
5.3.240.0370.05714.45
5.3.230.0300.04014.55
5.3.220.0300.06014.40
5.3.210.0370.05714.53
5.3.200.0430.05714.52
5.3.190.0400.03714.43
5.3.180.0370.04314.60
5.3.170.0430.06714.40
5.3.160.0370.04014.52
5.3.150.0370.06314.52
5.3.140.0400.03314.61
5.3.130.0400.06314.50
5.3.120.0400.03014.39
5.3.110.0370.05014.50
5.3.100.0430.06014.13
5.3.90.0400.06714.09
5.3.80.0300.04013.88
5.3.70.0400.06313.96
5.3.60.0300.03713.80
5.3.50.0370.04713.73
5.3.40.0430.06713.91
5.3.30.0400.06013.74
5.3.20.0370.03713.55
5.3.10.0430.03713.46
5.3.00.0400.06313.59
5.2.170.0330.03312.32
5.2.160.0270.04312.32
5.2.150.0200.03712.32
5.2.140.0270.02312.32
5.2.130.0200.04312.32
5.2.120.0200.03012.32
5.2.110.0170.03312.32
5.2.100.0200.03012.32
5.2.90.0270.02712.32
5.2.80.0230.04012.32
5.2.70.0200.03312.32
5.2.60.0370.05012.32
5.2.50.0330.04712.32
5.2.40.0270.04012.32
5.2.30.0230.03012.32
5.2.20.0270.04712.32
5.2.10.0230.03712.32
5.2.00.0230.03712.32
5.1.60.0230.03312.32
5.1.50.0330.04712.32
5.1.40.0300.02712.32
5.1.30.0230.03712.32
5.1.20.0230.05712.32
5.1.10.0200.03312.32
5.1.00.0300.04312.32
5.0.50.0130.03012.32
5.0.40.0170.04012.32
5.0.30.0130.04012.32
5.0.20.0170.03712.32
5.0.10.0130.01712.32
5.0.00.0170.03012.32
4.4.90.0100.01312.32
4.4.80.0130.02312.32
4.4.70.0130.02312.32
4.4.60.0100.02012.32
4.4.50.0130.01312.32
4.4.40.0130.02312.32
4.4.30.0100.01312.32
4.4.20.0170.03012.32
4.4.10.0200.01712.32
4.4.00.0100.03712.32
4.3.110.0100.02012.32
4.3.100.0100.01712.32
4.3.90.0130.03312.32
4.3.80.0170.02012.32
4.3.70.0130.02012.32
4.3.60.0130.01712.32
4.3.50.0100.01712.32
4.3.40.0100.02312.32
4.3.30.0100.02012.32
4.3.20.0100.01012.32
4.3.10.0030.02012.32
4.3.00.0100.02712.32

preferences:
141.1 ms | 1394 KiB | 7 Q