3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt='28:Apr:2015 "This is an Example!"'; $re1='.*?'; # Non-greedy match on filler $re2='(Example)'; # Word 1 if ($c=preg_match_all ("/".$re1.$re2."/is", $txt, $matches)) { $word1=$matches[1][0]; print "($word1) \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)
8.3.60.0100.01016.75
8.3.50.0130.00822.24
8.3.40.0040.01118.96
8.3.30.0070.01419.21
8.3.20.0070.00020.34
8.3.10.0080.00021.77
8.3.00.0040.00419.63
8.2.180.0190.00618.66
8.2.170.0110.00722.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0000.00819.61
8.2.110.0100.00021.25
8.2.100.0080.00317.88
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0000.00817.61
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0040.00420.08
8.2.30.0030.00618.05
8.2.20.0030.00517.95
8.2.10.0040.00418.15
8.2.00.0050.00217.83
8.1.280.0100.01025.92
8.1.270.0030.00520.74
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00623.98
8.1.230.0070.00418.97
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.34
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0070.00318.63
8.1.160.0000.00722.05
8.1.150.0080.00018.90
8.1.140.0030.00617.48
8.1.130.0040.00417.72
8.1.120.0030.00717.63
8.1.110.0040.00417.62
8.1.100.0000.00717.63
8.1.90.0030.00317.51
8.1.80.0100.00017.46
8.1.70.0030.00517.48
8.1.60.0000.00817.75
8.1.50.0000.00817.72
8.1.40.0070.00017.57
8.1.30.0050.00317.82
8.1.20.0030.00517.74
8.1.10.0030.00617.79
8.1.00.0050.00217.64
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0070.00016.96
8.0.260.0030.00318.43
8.0.250.0070.00016.99
8.0.240.0000.00617.06
8.0.230.0000.00816.96
8.0.220.0070.00016.90
8.0.210.0000.00717.06
8.0.200.0000.00617.14
8.0.190.0030.00517.07
8.0.180.0040.00417.07
8.0.170.0000.00817.10
8.0.160.0070.00017.04
8.0.150.0000.00716.93
8.0.140.0000.00816.88
8.0.130.0030.00313.43
8.0.120.0040.00417.00
8.0.110.0040.00416.96
8.0.100.0040.00417.10
8.0.90.0000.00816.88
8.0.80.0030.01117.06
8.0.70.0030.00517.01
8.0.60.0000.00816.98
8.0.50.0090.00016.86
8.0.30.0130.01017.10
8.0.20.0110.00717.40
8.0.10.0000.00817.03
8.0.00.0080.01217.02
7.4.330.0000.00615.04
7.4.320.0030.00316.63
7.4.300.0030.00316.82
7.4.290.0040.00416.77
7.4.280.0040.00416.80
7.4.270.0030.00316.82
7.4.260.0040.00416.63
7.4.250.0080.00016.77
7.4.240.0030.00516.73
7.4.230.0040.00416.78
7.4.220.0090.00916.60
7.4.210.0050.01316.70
7.4.200.0070.00016.53
7.4.160.0080.00816.68
7.4.150.0040.01317.40
7.4.140.0100.00817.86
7.4.130.0100.00716.69
7.4.120.0130.00516.54
7.4.110.0070.01716.61
7.4.100.0130.01016.66
7.4.90.0040.01616.58
7.4.80.0210.00419.39
7.4.70.0060.01516.77
7.4.60.0120.00916.73
7.4.50.0040.00016.43
7.4.40.0100.00616.75
7.4.30.0140.00716.57
7.4.00.0020.01314.78
7.3.330.0060.00013.38
7.3.320.0070.00713.31
7.3.310.0030.00316.46
7.3.300.0000.00616.50
7.3.290.0000.00716.52
7.3.280.0140.00316.43
7.3.270.0320.01317.40
7.3.260.0120.01216.76
7.3.250.0120.00516.55
7.3.240.0100.01016.72
7.3.230.0090.00916.87
7.3.210.0030.01516.52
7.3.200.0160.00619.39
7.3.190.0090.00616.50
7.3.180.0100.00616.73
7.3.170.0150.00316.75
7.3.160.0120.00916.73
7.3.120.0100.00715.14
7.3.110.0040.01115.06
7.3.100.0060.01014.79
7.3.90.0040.01114.97
7.3.80.0060.00915.06
7.3.70.0060.00614.80
7.3.60.0100.00714.89
7.3.50.0130.00614.97
7.3.40.0100.01014.70
7.3.30.0060.00615.14
7.3.20.0090.00316.80
7.3.10.0060.00716.95
7.3.00.0070.00816.69
7.2.330.0100.00616.78
7.2.320.0070.01416.67
7.2.310.0180.00616.77
7.2.300.0130.00316.98
7.2.290.0090.00916.92
7.2.250.0100.01015.32
7.2.240.0070.01515.50
7.2.230.0060.01015.45
7.2.220.0060.00915.11
7.2.210.0030.01215.16
7.2.200.0030.01014.88
7.2.190.0140.00715.08
7.2.180.0060.01315.22
7.2.170.0030.00715.39
7.2.130.0060.00617.21
7.2.120.0070.00717.07
7.2.110.0080.00416.85
7.2.100.0030.01317.14
7.2.90.0030.00617.16
7.2.80.0040.00917.13
7.2.70.0000.01517.21
7.2.60.0080.00416.88
7.2.50.0060.00317.03
7.2.40.0090.00617.27
7.2.30.0070.00717.25
7.2.20.0100.00717.18
7.2.10.0070.00717.18
7.2.00.0020.01318.33
7.1.330.0040.01416.12
7.1.320.0080.00616.11
7.1.310.0030.01216.07
7.1.300.0030.01315.88
7.1.290.0060.00916.01
7.1.280.0030.00615.93
7.1.270.0090.00615.79
7.1.260.0070.00715.93
7.1.250.0060.00316.01
7.1.100.0000.00918.66
7.1.70.0060.01217.46
7.1.60.0200.00319.50
7.1.50.0110.01117.12
7.1.00.0030.07322.45
7.0.200.0710.01014.95
7.0.140.0030.08021.97
7.0.60.0000.04720.04
7.0.50.0130.05717.83
7.0.40.0100.05019.99
7.0.30.0230.05020.11
7.0.20.0300.06020.14
7.0.10.0100.08320.18
7.0.00.0170.07020.03
5.6.280.0070.07021.04
5.6.210.0070.05320.75
5.6.200.0000.05318.08
5.6.190.0030.06720.64
5.6.180.0500.03720.77
5.6.170.0330.06720.51
5.6.160.0100.04320.53
5.6.150.0130.04318.15
5.6.140.0070.03318.11
5.6.130.0070.03718.06
5.6.120.0070.07021.11
5.6.110.0070.08320.93
5.6.100.0070.06020.98
5.6.90.0130.06320.96
5.6.80.0100.07720.52
5.5.350.0270.07320.41
5.5.340.0130.04317.98
5.5.330.0030.08720.12
5.5.320.0300.06320.50
5.5.310.0270.05320.17
5.5.300.0000.04018.00
5.5.290.0130.08318.07
5.5.280.0100.05320.97
5.5.270.0030.04720.88
5.5.260.0170.07320.72
5.5.250.0030.04020.55
5.5.240.0100.07020.35
5.4.450.0670.05719.25
5.4.440.0800.07019.52
5.4.430.0800.05019.46
5.4.420.0700.05319.32
5.4.410.0830.05719.28
5.4.400.0170.06018.61
5.4.390.0230.05318.83
5.4.380.0300.04718.74
5.4.370.0170.05318.74
5.4.360.0170.05718.68
5.4.350.0300.06718.46
5.4.340.0230.05718.72
5.4.320.0270.07718.52
5.4.310.0170.05718.59
5.4.300.0300.04018.82
5.4.290.0230.05318.61
5.4.280.0230.05318.73
5.4.270.0100.06318.66
5.4.260.0170.07718.65
5.4.250.0300.04318.50
5.4.240.0230.04718.65
5.4.230.0230.04718.49
5.4.220.0130.06318.54
5.4.210.0100.06318.68
5.4.200.0230.05016.38
5.4.190.0170.05318.48
5.4.180.0170.05318.70
5.4.170.0170.05718.48
5.4.160.0070.06018.66
5.4.150.0270.05718.48
5.4.140.0300.05016.23
5.4.130.0270.04316.25
5.4.120.0130.05716.14
5.4.110.0200.05316.22
5.4.100.0100.06316.16
5.4.90.0130.06016.12
5.4.80.0070.06016.14
5.4.70.0300.04316.13
5.4.60.0230.04316.10
5.4.50.0270.04016.28
5.4.40.0130.05316.13
5.4.30.0230.04316.11
5.4.20.0230.05716.08
5.4.10.0200.05716.33
5.4.00.0230.04315.78
5.3.290.0200.06014.64
5.3.280.0300.04014.52
5.3.270.0170.05314.75
5.3.260.0170.05714.53
5.3.250.0230.05014.56
5.3.240.0130.06014.53
5.3.230.0300.04014.75
5.3.220.0170.05314.47
5.3.210.0100.06314.66
5.3.200.0230.05314.66
5.3.190.0230.05314.48
5.3.180.0230.05314.49
5.3.170.0030.06314.63
5.3.160.0170.05014.66
5.3.150.0300.04314.63
5.3.140.0200.05014.62
5.3.130.0130.05714.57
5.3.120.0130.05714.53
5.3.110.0270.05714.61
5.3.100.0370.04014.11
5.3.90.0230.05014.10
5.3.80.0100.06014.05
5.3.70.0170.05714.02
5.3.60.0270.04313.99
5.3.50.0230.04313.85
5.3.40.0170.05314.02
5.3.30.0170.05013.94
5.3.20.0170.05313.60
5.3.10.0130.05713.73
5.3.00.0100.06013.59
5.2.170.0130.04011.13
5.2.160.0070.05311.20
5.2.150.0100.04711.20
5.2.140.0170.04311.20
5.2.130.0270.03011.01
5.2.120.0230.03311.12
5.2.110.0100.04711.23
5.2.100.0130.04711.09
5.2.90.0170.05311.17
5.2.80.0170.04311.16
5.2.70.0130.04311.09
5.2.60.0070.04711.09
5.2.50.0200.03711.04
5.2.40.0100.04311.03
5.2.30.0130.04011.04
5.2.20.0100.05310.89
5.2.10.0170.04710.88
5.2.00.0200.04710.70
5.1.60.0100.03710.11
5.1.50.0130.03310.02
5.1.40.0100.0379.99
5.1.30.0200.03010.34
5.1.20.0100.04710.32
5.1.10.0170.03010.18
5.1.00.0130.03310.04
5.0.50.0130.0238.64
5.0.40.0100.0238.44
5.0.30.0070.0438.24
5.0.20.0030.0308.37
5.0.10.0030.0378.37
5.0.00.0100.0478.25
4.4.90.0130.0206.54
4.4.80.0070.0236.54
4.4.70.0030.0236.54
4.4.60.0130.0136.54
4.4.50.0100.0206.54
4.4.40.0100.0306.54
4.4.30.0070.0206.54
4.4.20.0030.0276.54
4.4.10.0170.0206.54
4.4.00.0130.0336.54
4.3.110.0130.0136.54
4.3.100.0170.0206.54
4.3.90.0100.0276.54
4.3.80.0070.0336.54
4.3.70.0100.0206.54
4.3.60.0030.0306.54
4.3.50.0070.0236.54
4.3.40.0100.0336.54
4.3.30.0030.0276.54
4.3.20.0030.0236.54
4.3.10.0000.0276.54
4.3.00.0130.0207.12

preferences:
51.76 ms | 401 KiB | 5 Q