3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re1=".*?"; # Non-greedy match on filler $re2="(\\[)"; # Any Single Character 1 $re3="(n)"; # Any Single Character 2 $re4="(i)"; # Any Single Character 3 $re5="(d)"; # Any Single Character 4 $re6="(:)"; # Any Single Character 5 $txt="iasduad iiabefibasdib [nid:112] oabsdo baosd [10] [n10]"; if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $txt, $matches)){ $c1=$matches[1][0]; $c2=$matches[2][0]; $c3=$matches[3][0]; $c4=$matches[4][0]; $c5=$matches[5][0]; print "($c1) ($c2) ($c3) ($c4) ($c5) \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.01216.88
8.3.50.0100.00623.09
8.3.40.0070.00718.91
8.3.30.0070.00719.16
8.3.20.0070.00019.97
8.3.10.0090.00023.66
8.3.00.0080.00017.88
8.2.180.0040.01116.73
8.2.170.0060.01222.96
8.2.160.0100.00320.35
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0100.00026.16
8.2.120.0060.00320.95
8.2.110.0040.00422.37
8.2.100.0100.00019.46
8.2.90.0040.00719.16
8.2.80.0040.00417.97
8.2.70.0000.01118.00
8.2.60.0030.00617.68
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0040.00418.13
8.2.20.0000.00717.99
8.2.10.0040.00418.09
8.2.00.0070.00017.80
8.1.280.0150.00625.92
8.1.270.0080.00023.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00424.02
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.48
8.1.190.0030.00617.35
8.1.180.0080.00019.20
8.1.170.0060.00318.78
8.1.160.0080.00022.05
8.1.150.0040.00418.91
8.1.140.0000.00717.54
8.1.130.0000.00717.88
8.1.120.0040.00417.68
8.1.110.0030.00617.64
8.1.100.0070.00017.50
8.1.90.0040.00417.49
8.1.80.0000.00717.64
8.1.70.0040.00417.56
8.1.60.0030.00617.79
8.1.50.0090.00017.65
8.1.40.0070.00017.57
8.1.30.0030.00617.73
8.1.20.0070.00017.73
8.1.10.0000.00817.76
8.1.00.0000.00817.63
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0000.00718.46
8.0.270.0000.00717.18
8.0.260.0060.00017.32
8.0.250.0030.00317.07
8.0.240.0040.00417.01
8.0.230.0030.00316.97
8.0.220.0030.00317.03
8.0.210.0060.00316.93
8.0.200.0070.00017.14
8.0.190.0000.00817.01
8.0.180.0070.00017.06
8.0.170.0030.00517.13
8.0.160.0030.00517.11
8.0.150.0050.00316.86
8.0.140.0070.00017.00
8.0.130.0030.00313.47
8.0.120.0040.00416.90
8.0.110.0030.00317.00
8.0.100.0000.00717.10
8.0.90.0040.00416.88
8.0.80.0060.00917.03
8.0.70.0080.00017.10
8.0.60.0030.00517.10
8.0.50.0040.00416.91
8.0.30.0100.01117.38
8.0.20.0090.01117.40
8.0.10.0000.00717.10
8.0.00.0060.01217.15
7.4.330.0060.00015.04
7.4.320.0060.00016.79
7.4.300.0030.00316.71
7.4.290.0000.00716.73
7.4.280.0060.00316.86
7.4.270.0070.00016.61
7.4.260.0070.00016.68
7.4.250.0040.00416.80
7.4.240.0040.00416.63
7.4.230.0030.00316.63
7.4.220.0040.01316.84
7.4.210.0030.01016.79
7.4.200.0030.00316.74
7.4.160.0060.01016.61
7.4.150.0100.00717.40
7.4.140.0140.00617.86
7.4.130.0100.00816.53
7.4.120.0100.00716.59
7.4.110.0140.00316.66
7.4.100.0080.00816.59
7.4.90.0100.00716.63
7.4.80.0140.00519.39
7.4.70.0070.01116.70
7.4.60.0100.00716.62
7.4.50.0040.00416.79
7.4.40.0030.01316.54
7.4.30.0090.00616.67
7.4.00.0040.00715.24
7.3.330.0000.00613.37
7.3.320.0000.00513.13
7.3.310.0070.00016.33
7.3.300.0000.00816.37
7.3.290.0040.00816.43
7.3.280.0100.00716.49
7.3.270.0110.00617.40
7.3.260.0150.00616.50
7.3.250.0120.00916.48
7.3.240.0190.00316.48
7.3.230.0180.00616.55
7.3.210.0060.01316.72
7.3.200.0040.01319.39
7.3.190.0120.00616.80
7.3.180.0100.00616.56
7.3.170.0060.00916.53
7.3.160.0120.00316.72
7.2.330.0130.02516.91
7.2.320.0110.00816.80
7.2.310.0070.01716.88
7.2.300.0100.00716.96
7.2.290.0060.01016.75
7.2.60.0060.00917.05
7.2.00.0100.00319.84
7.1.200.0130.00015.83
7.1.100.0060.00318.53
7.1.70.0000.00817.59
7.1.60.0120.01219.40
7.1.50.0140.01017.07
7.1.00.0000.08022.50
7.0.200.0000.00716.66
7.0.140.0070.07021.95
7.0.60.0000.07720.05
7.0.50.0000.09317.85
7.0.40.0070.04020.04
7.0.30.0200.08320.03
7.0.20.0330.07020.18
7.0.10.0170.05020.34
7.0.00.0100.06020.11
5.6.280.0100.06720.86
5.6.210.0100.08020.52
5.6.200.0030.04018.22
5.6.190.0070.05320.63
5.6.180.0330.07320.38
5.6.170.0370.07320.52
5.6.160.0030.05020.39
5.6.150.0130.07718.12
5.6.140.0030.06718.11
5.6.130.0070.06718.21
5.6.120.0030.04721.13
5.6.110.0030.06021.13
5.6.100.0030.06721.03
5.6.90.0070.08721.10
5.6.80.0130.06020.36
5.6.70.0270.04720.47
5.5.350.0200.07020.40
5.5.340.0070.05017.98
5.5.330.0130.08020.45
5.5.320.0030.04720.29
5.5.310.0270.08020.30
5.5.300.0170.07717.97
5.5.290.0030.08718.01
5.5.280.0030.06320.89
5.5.270.0070.08020.83
5.5.260.0130.07020.79
5.5.250.0070.06720.79
5.5.240.0170.06020.37
5.4.450.0630.05319.59
5.4.440.0130.06019.37
5.4.430.0230.06319.29
5.4.420.0200.05319.35
5.4.410.0170.05018.96
5.4.400.0300.06318.72
5.4.390.0370.06718.50
5.4.380.0400.04318.72
5.4.370.0330.05318.56
5.4.360.0470.07018.50
5.4.350.0180.07511.97
5.4.340.0080.03411.97
5.4.320.0090.03512.46
5.4.310.0060.03712.46
5.4.300.0070.03812.46
5.4.290.0080.03712.45
5.4.280.0090.03312.35
5.4.270.0060.03512.36
5.4.260.0090.03412.35
5.4.250.0020.04112.35
5.4.240.0060.04112.35
5.4.230.0040.04012.34
5.4.220.0080.03412.34
5.4.210.0040.03712.34
5.4.200.0020.04112.34
5.4.190.0050.03612.34
5.4.180.0040.03812.34
5.4.170.0070.03812.35
5.4.160.0060.03712.34
5.4.150.0070.03512.34
5.4.140.0040.03912.03
5.4.130.0080.03512.01
5.4.120.0070.03611.97
5.4.110.0060.04111.97
5.4.100.0050.03611.96
5.4.90.0080.03811.96
5.4.80.0060.04511.97
5.4.70.0050.03911.96
5.4.60.0120.03411.96
5.4.50.0070.03611.96
5.4.40.0080.03311.95
5.4.30.0070.03411.95
5.4.20.0050.03811.95
5.4.10.0100.03011.95
5.4.00.0030.03911.43
5.3.290.0070.03912.80
5.3.280.0050.03912.70
5.3.270.0130.03412.72
5.3.260.0070.03912.72
5.3.250.0050.03812.72
5.3.240.0050.03812.72
5.3.230.0060.03812.70
5.3.220.0050.03812.68
5.3.210.0040.04312.68
5.3.200.0080.03712.68
5.3.190.0080.04312.68
5.3.180.0070.05012.67
5.3.170.0100.03812.67
5.3.160.0090.03312.67
5.3.150.0050.03812.67
5.3.140.0080.03412.66
5.3.130.0070.03812.66
5.3.120.0060.04012.66
5.3.110.0110.03512.66
5.3.100.0090.03612.12
5.3.90.0030.04312.09
5.3.80.0070.04012.07
5.3.70.0040.04012.08
5.3.60.0070.03512.07
5.3.50.0080.03512.00
5.3.40.0060.03812.00
5.3.30.0020.03911.96
5.3.20.0050.03611.73
5.3.10.0040.03811.70
5.3.00.0080.04011.70
5.2.170.0100.0309.19
5.2.160.0030.0319.20
5.2.150.0040.0329.19
5.2.140.0050.0329.19
5.2.130.0050.0299.15
5.2.120.0030.0299.15
5.2.110.0060.0279.16
5.2.100.0040.0299.15
5.2.90.0050.0279.15
5.2.80.0060.0289.15
5.2.70.0040.0329.15
5.2.60.0030.0339.10
5.2.50.0050.0329.07
5.2.40.0040.0339.06
5.2.30.0060.0299.04
5.2.20.0040.0299.02
5.2.10.0040.0288.93
5.2.00.0050.0288.79
5.1.60.0050.0238.07
5.1.50.0030.0268.06
5.1.40.0040.0268.05
5.1.30.0020.0288.39
5.1.20.0040.0278.41
5.1.10.0060.0268.14
5.1.00.0060.0258.14
5.0.50.0030.0226.63
5.0.40.0040.0196.49
5.0.30.0030.0326.30
5.0.20.0030.0206.27
5.0.10.0000.0236.25
5.0.00.0040.0306.24
4.4.90.0020.0164.78
4.4.80.0000.0194.75
4.4.70.0030.0184.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0070.0144.76
4.4.20.0010.0184.84
4.4.10.0040.0154.85
4.4.00.0050.0254.76
4.3.110.0030.0164.67
4.3.100.0030.0164.66
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0020.0184.63
4.3.60.0020.0174.63
4.3.50.0030.0154.63
4.3.40.0010.0274.54
4.3.30.0050.0143.30
4.3.20.0010.0193.28
4.3.10.0030.0153.23
4.3.00.0100.0236.92

preferences:
43.64 ms | 401 KiB | 5 Q