3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt="iasduad iiabefibasdib [nid:112] oabsdo baosd [10] [n10]"; $re1=".*?"; $re2="(\\[)"; $re3="((?:[a-z][a-z0-9_]*))"; $re4="(:)"; if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches)) { $c1=$matches[1][0]; $var1=$matches[2][0]; $c2=$matches[3][0]; print "($c1) ($var1) ($c2) \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.0040.01117.13
8.3.50.0120.00723.07
8.3.40.0090.00618.96
8.3.30.0100.00318.91
8.3.20.0000.00720.16
8.3.10.0040.00423.70
8.3.00.0080.00017.72
8.2.180.0180.00416.75
8.2.170.0130.00719.11
8.2.160.0140.00022.96
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0070.00426.16
8.2.120.0080.00020.96
8.2.110.0060.00322.25
8.2.100.0000.01119.26
8.2.90.0040.00719.17
8.2.80.0040.00417.97
8.2.70.0000.01017.75
8.2.60.0000.01018.16
8.2.50.0000.00918.07
8.2.40.0000.00918.34
8.2.30.0050.00318.23
8.2.20.0000.00718.02
8.2.10.0040.00418.09
8.2.00.0070.00017.86
8.1.280.0190.00325.92
8.1.270.0080.00023.76
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.78
8.1.230.0120.00019.03
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0000.01018.76
8.1.160.0070.00022.05
8.1.150.0000.00718.94
8.1.140.0000.00717.54
8.1.130.0040.00417.90
8.1.120.0050.00317.51
8.1.110.0000.00717.61
8.1.100.0030.00317.53
8.1.90.0020.00517.63
8.1.80.0000.00717.67
8.1.70.0000.00817.55
8.1.60.0000.00817.75
8.1.50.0020.00517.68
8.1.40.0000.00717.70
8.1.30.0050.00317.79
8.1.20.0080.00017.89
8.1.10.0000.00817.65
8.1.00.0040.00417.66
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0000.00718.41
8.0.270.0030.00317.18
8.0.260.0020.00517.30
8.0.250.0000.00717.13
8.0.240.0040.00417.02
8.0.230.0000.00717.06
8.0.220.0030.00316.96
8.0.210.0000.00817.04
8.0.200.0030.00317.18
8.0.190.0050.00217.12
8.0.180.0050.00216.99
8.0.170.0040.00417.14
8.0.160.0000.00716.93
8.0.150.0040.00417.04
8.0.140.0040.00417.07
8.0.130.0000.00613.52
8.0.120.0040.00417.03
8.0.110.0000.00717.04
8.0.100.0040.00416.97
8.0.90.0040.00416.96
8.0.80.0180.00017.00
8.0.70.0040.00417.07
8.0.60.0050.00316.92
8.0.50.0000.00717.10
8.0.30.0060.01317.29
8.0.20.0110.00917.47
8.0.10.0050.00217.16
8.0.00.0100.01117.14
7.4.330.0020.00215.00
7.4.320.0060.00016.75
7.4.300.0000.00616.77
7.4.290.0050.00316.74
7.4.280.0000.00816.85
7.4.270.0000.00716.75
7.4.260.0070.00016.71
7.4.250.0080.00016.82
7.4.240.0020.00516.67
7.4.230.0000.00716.77
7.4.220.0140.01016.62
7.4.210.0120.00316.72
7.4.200.0070.00016.64
7.4.160.0060.00916.69
7.4.150.0060.01217.40
7.4.140.0110.00917.86
7.4.130.0090.00916.75
7.4.120.0080.00816.62
7.4.110.0090.00916.76
7.4.100.0060.01016.78
7.4.90.0080.00816.66
7.4.80.0100.01419.39
7.4.70.0090.00916.76
7.4.60.0100.00716.65
7.4.50.0030.00616.79
7.4.40.0080.00816.61
7.4.30.0110.00616.74
7.4.00.0070.00014.93
7.3.330.0000.00613.33
7.3.320.0000.00513.31
7.3.310.0030.00316.64
7.3.300.0030.00316.52
7.3.290.0070.00716.46
7.3.280.0080.00916.50
7.3.270.0150.00917.40
7.3.260.0120.00816.71
7.3.250.0050.01416.56
7.3.240.0100.00716.85
7.3.230.0070.01416.77
7.3.210.0070.01016.88
7.3.200.0140.00619.39
7.3.190.0070.01416.73
7.3.180.0100.00616.41
7.3.170.0000.01916.55
7.3.160.0130.00316.59
7.2.330.0090.00916.84
7.2.320.0060.01616.91
7.2.310.0140.01016.96
7.2.300.0070.01616.78
7.2.290.0100.00717.01
7.2.60.0040.01117.00
7.2.00.0030.00919.48
7.1.200.0060.00615.68
7.1.100.0030.01018.37
7.1.70.0000.00717.53
7.1.60.0140.01019.40
7.1.50.0060.01917.13
7.1.00.0000.08022.45
7.0.200.0000.00716.78
7.0.140.0070.07322.21
7.0.60.0030.05019.86
7.0.50.0070.03717.88
7.0.40.0030.09020.14
7.0.30.0230.05320.18
7.0.20.0200.03720.03
7.0.10.0070.08020.03
7.0.00.0070.08720.14
5.6.280.0000.07720.98
5.6.210.0070.08720.76
5.6.200.0100.03318.12
5.6.190.0070.07320.56
5.6.180.0370.06320.41
5.6.170.0300.05020.45
5.6.160.0070.07020.76
5.6.150.0030.04018.18
5.6.140.0170.06718.21
5.6.130.0100.07718.15
5.6.120.0070.07720.98
5.6.110.0130.07320.89
5.6.100.0070.03721.10
5.6.90.0070.08020.96
5.6.80.0030.03720.41
5.5.350.0030.03320.38
5.5.340.0170.06717.98
5.5.330.0270.06720.13
5.5.320.0030.08320.27
5.5.310.0130.07020.13
5.5.300.0100.05717.88
5.5.290.0100.07718.01
5.5.280.0130.08320.87
5.5.270.0070.08720.72
5.5.260.0070.03720.79
5.5.250.0070.05720.70
5.5.240.4070.04720.07
5.4.450.0170.04319.14
5.4.440.0270.04719.10
5.4.430.0300.04719.40
5.4.420.0200.04719.48
5.4.410.0530.04018.97
5.4.400.0170.03719.06
5.4.390.0400.04318.89
5.4.380.0170.07018.71
5.4.370.0270.04718.56
5.4.360.0230.06318.66
5.4.350.0100.06318.50
5.4.340.0200.07018.68
5.4.320.0040.03912.46
5.4.310.0080.03612.45
5.4.300.0060.04012.46
5.4.290.0050.03912.45
5.4.280.0080.03412.35
5.4.270.0040.04012.34
5.4.260.0060.03712.35
5.4.250.0040.04012.35
5.4.240.0060.03712.35
5.4.230.0090.03812.34
5.4.220.0080.03412.34
5.4.210.0040.03912.34
5.4.200.0070.03812.34
5.4.190.0050.03812.34
5.4.180.0070.03512.34
5.4.170.0080.03512.35
5.4.160.0090.03412.35
5.4.150.0060.03712.34
5.4.140.0080.03512.02
5.4.130.0050.03612.01
5.4.120.0040.04011.97
5.4.110.0060.04211.96
5.4.100.0040.03911.97
5.4.90.0040.04011.96
5.4.80.0110.05011.97
5.4.70.0050.03611.96
5.4.60.0060.03411.96
5.4.50.0050.03811.96
5.4.40.0080.03211.95
5.4.30.0070.03511.95
5.4.20.0060.03611.95
5.4.10.0050.03611.95
5.4.00.0070.03511.44
5.3.290.0060.04012.80
5.3.280.0050.03912.71
5.3.270.0070.03812.72
5.3.260.0060.03812.72
5.3.250.0060.03712.72
5.3.240.0120.03312.72
5.3.230.0030.04012.71
5.3.220.0060.04212.68
5.3.210.0110.04512.68
5.3.200.0030.05112.68
5.3.190.0070.03712.68
5.3.180.0060.03612.68
5.3.170.0060.03512.67
5.3.160.0070.03512.68
5.3.150.0060.03612.67
5.3.140.0070.03612.66
5.3.130.0070.03912.66
5.3.120.0070.04012.66
5.3.110.0050.04012.66
5.3.100.0060.03612.12
5.3.90.0040.03812.09
5.3.80.0080.03812.08
5.3.70.0090.03612.08
5.3.60.0050.03712.06
5.3.50.0090.03212.00
5.3.40.0050.03612.00
5.3.30.0080.03311.96
5.3.20.0030.03811.73
5.3.10.0060.03311.70
5.3.00.0070.03511.69
5.2.170.0030.0339.20
5.2.160.0060.0289.20
5.2.150.0070.0289.19
5.2.140.0030.0329.19
5.2.130.0030.0319.15
5.2.120.0050.0289.15
5.2.110.0020.0329.16
5.2.100.0040.0309.15
5.2.90.0050.0349.14
5.2.80.0030.0339.14
5.2.70.0040.0329.15
5.2.60.0060.0309.10
5.2.50.0040.0349.07
5.2.40.0040.0319.05
5.2.30.0030.0329.03
5.2.20.0030.0319.02
5.2.10.0050.0298.92
5.2.00.0050.0308.78
5.1.60.0040.0248.07
5.1.50.0050.0258.06
5.1.40.0030.0278.04
5.1.30.0070.0348.39
5.1.20.0090.0358.41
5.1.10.0070.0298.14
5.1.00.0080.0278.14
5.0.50.0030.0216.62
5.0.40.0030.0206.48
5.0.30.0060.0316.29
5.0.20.0040.0276.26
5.0.10.0060.0256.24
5.0.00.0030.0316.23
4.4.90.0020.0174.78
4.4.80.0030.0154.75
4.4.70.0010.0184.75
4.4.60.0050.0144.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0030.0324.76
4.4.20.0030.0164.84
4.4.10.0030.0224.85
4.4.00.0040.0244.76
4.3.110.0030.0164.66
4.3.100.0070.0174.66
4.3.90.0060.0174.63
4.3.80.0040.0304.58
4.3.70.0050.0184.63
4.3.60.0030.0184.62
4.3.50.0010.0184.63
4.3.40.0040.0264.54
4.3.30.0020.0173.29
4.3.20.0000.0183.26
4.3.10.0010.0173.21
4.3.00.0000.02015.97

preferences:
43.04 ms | 401 KiB | 5 Q