3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = new RecursiveArrayIterator(['test1', ['test2', 'test3']]); $regex = new RecursiveRegexIterator($arr, '/^test/', RegexIterator::ALL_MATCHES, 4, 4); $regex->next(); $child = $regex->getChildren(); var_dump(get_class($child), $child->getMode(), $child->getFlags(), $child->getPregFlags());

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.70.0140.00716.50
8.3.60.0040.01518.56
8.3.50.0110.00922.06
8.3.40.0150.00318.77
8.3.30.0110.00718.79
8.3.20.0080.00020.20
8.3.10.0060.00320.40
8.3.00.0080.00019.50
8.2.190.0070.00716.58
8.2.180.0110.01116.75
8.2.170.0140.00022.96
8.2.160.0060.00920.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.13
8.2.110.0060.00322.20
8.2.100.0000.01117.91
8.2.90.0040.00417.88
8.2.80.0000.00817.97
8.2.70.0030.00617.80
8.2.60.0040.00418.04
8.2.50.0040.00718.10
8.2.40.0030.00520.41
8.2.30.0030.00619.21
8.2.20.0000.00817.69
8.2.10.0050.00317.96
8.2.00.0050.00317.84
8.1.280.0130.01025.92
8.1.270.0090.00323.99
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0080.00023.75
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.47
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0040.00418.63
8.1.160.0040.00422.04
8.1.150.0070.00018.74
8.1.140.0000.00717.58
8.1.130.0000.00817.74
8.1.120.0040.00417.56
8.1.110.0000.00717.56
8.1.100.0080.00017.55
8.1.90.0040.00417.62
8.1.80.0070.00017.57
8.1.70.0040.00417.43
8.1.60.0040.00417.57
8.1.50.0030.00517.64
8.1.40.0040.00417.50
8.1.30.0090.00017.64
8.1.20.0040.00417.76
8.1.10.0040.00417.62
8.1.00.0000.00817.63
8.0.300.0040.00419.96
8.0.290.0030.00916.75
8.0.280.0030.00318.40
8.0.270.0030.00317.36
8.0.260.0030.00317.23
8.0.250.0030.00316.95
8.0.240.0000.00717.05
8.0.230.0030.00316.96
8.0.220.0000.00816.91
8.0.210.0030.00317.03
8.0.200.0080.00016.96
8.0.190.0040.00417.00
8.0.180.0070.00017.03
8.0.170.0000.00817.01
8.0.160.0030.00316.90
8.0.150.0000.00716.93
8.0.140.0040.00416.87
8.0.130.0000.00513.48
8.0.120.0040.00416.88
8.0.110.0000.00817.00
8.0.100.0050.00316.88
8.0.90.0040.00416.79
8.0.80.0030.01216.92
8.0.70.0070.00016.94
8.0.60.0000.00716.93
8.0.50.0000.00816.87
8.0.30.0120.00917.19
8.0.20.0060.01317.40
8.0.10.0000.00816.98
8.0.00.0050.01316.87
7.4.330.0000.00615.00
7.4.320.0030.00316.65
7.4.300.0030.00316.61
7.4.290.0000.00716.67
7.4.280.0060.00316.75
7.4.270.0030.00316.64
7.4.260.0030.00316.66
7.4.250.0050.00316.77
7.4.240.0040.00416.64
7.4.230.0000.00716.60
7.4.220.0090.00916.76
7.4.210.0170.00316.79
7.4.200.0000.00616.69
7.4.160.0160.00416.48
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0100.00816.52
7.4.120.0070.01216.79
7.4.110.0080.00816.69
7.4.100.0070.01416.54
7.4.90.0120.00616.80
7.4.80.0110.00718.63
7.4.70.0060.01016.52
7.4.60.0130.00316.57
7.4.50.0000.00816.58
7.4.40.0090.01016.45
7.4.30.0050.01016.69
7.4.00.0100.00615.14
7.3.330.0030.00313.19
7.3.320.0000.00513.20
7.3.310.0000.00716.44
7.3.300.0000.00716.36
7.3.290.0060.00816.36
7.3.280.0060.01116.35
7.3.270.0120.00917.40
7.3.260.0140.00516.80
7.3.250.0130.00716.75
7.3.240.0060.01016.63
7.3.230.0040.01416.50
7.3.210.0070.01016.34
7.3.200.0090.01319.39
7.3.190.0160.00616.39
7.3.180.0100.00716.32
7.3.170.0090.00816.35
7.3.160.0070.01016.59
7.3.120.0180.00014.81
7.3.110.0030.00714.90
7.3.100.0030.00715.20
7.3.90.0070.01014.85
7.3.80.0070.00715.10
7.3.70.0030.00915.11
7.3.60.0130.00014.94
7.3.50.0030.01015.05
7.3.40.0030.01414.96
7.3.30.0000.01414.91
7.3.20.0080.00816.83
7.3.10.0100.00716.56
7.3.00.0030.00916.75
7.2.330.0090.00916.84
7.2.320.0030.01916.77
7.2.310.0160.00016.87
7.2.300.0060.01216.67
7.2.290.0130.01016.60
7.2.240.0030.01015.29
7.2.230.0070.00715.18
7.2.220.0030.01214.96
7.2.210.0030.01514.92
7.2.200.0030.01415.12
7.2.190.0070.00714.96
7.2.180.0060.00815.09
7.2.170.0070.00315.05
7.2.160.0070.00715.12
7.2.150.0100.00316.92
7.2.140.0090.00917.19
7.2.130.0030.01216.86
7.2.120.0030.01016.86
7.2.110.0060.00916.92
7.2.100.0000.01616.86
7.2.90.0070.01017.01
7.2.80.0030.01417.14
7.2.70.0070.01016.86
7.2.60.0030.01316.95
7.2.50.0040.01517.03
7.2.40.0090.01016.79
7.2.30.0060.00917.07
7.2.20.0030.00717.02
7.2.10.0080.00417.13
7.2.00.0060.00718.32
7.1.330.0030.01315.95
7.1.320.0030.01415.89
7.1.310.0100.00715.71
7.1.300.0040.01115.84
7.1.290.0030.01016.04
7.1.280.0080.00815.84
7.1.270.0070.00715.90
7.1.260.0070.01015.81
7.1.250.0000.01715.85
7.1.100.0110.00717.79
7.1.70.0030.00617.31
7.1.60.0150.01119.32
7.1.50.0100.01017.15
7.1.00.0070.07322.46
7.0.200.0000.01116.88
7.0.140.0030.07322.11
7.0.60.0100.07719.87
7.0.50.0070.06717.80
7.0.40.0100.08020.22
7.0.30.0200.04020.22
7.0.20.0370.07020.03
7.0.10.0130.08020.19
7.0.00.0170.06020.14
5.6.210.0100.07720.66
5.6.200.0030.06318.12
5.6.190.0100.04320.64
5.6.180.0430.06320.41
5.6.170.0330.08320.41
5.6.160.0170.06320.38
5.6.150.0100.08018.11
5.6.140.0070.08018.20
5.6.130.0100.05018.13
5.6.120.0170.04720.87
5.6.110.0100.07021.11
5.6.100.0100.06320.98
5.6.90.0070.06020.96
5.6.80.0130.05320.54
5.5.350.0230.02320.44
5.5.340.0100.08017.92
5.5.330.0130.08020.12
5.5.320.0430.06320.31
5.5.310.0300.06720.41
5.5.300.0070.08318.00
5.5.290.0170.06017.89
5.5.280.0070.05720.65
5.5.270.0030.04320.86
5.5.260.0130.07320.86
5.5.250.0100.07720.56
5.5.240.0130.08320.25
5.4.450.0400.08019.17
5.4.440.1030.04319.57
5.4.430.1170.05719.58
5.4.420.1000.05319.59
5.4.410.0970.05719.42
5.4.400.1130.04319.25
5.4.390.1130.05319.25
5.4.380.0370.07718.76
5.4.370.0630.06318.52
5.4.360.0370.05718.63
5.4.350.0300.05718.61
5.4.340.0500.05718.84
5.4.320.0040.03712.51
5.4.310.0070.03612.50
5.4.300.0070.03912.51
5.4.290.0070.04012.50
5.4.280.0040.03612.39
5.4.270.0050.04312.39
5.4.260.0070.03612.40
5.4.250.0110.03712.40
5.4.240.0070.03812.39
5.4.230.0100.03612.39
5.4.220.0080.03512.39
5.4.210.0070.03512.39
5.4.200.0090.04112.39
5.4.190.0090.04212.39
5.4.180.0060.05012.38
5.4.170.0070.03712.40
5.4.160.0050.03712.39
5.4.150.0070.03512.39
5.4.140.0050.03812.07
5.4.130.0060.03512.06
5.4.120.0090.04112.02
5.4.110.0070.03412.01
5.4.100.0060.04712.02
5.4.90.0080.03912.02
5.4.80.0070.03512.01
5.4.70.0070.03312.01
5.4.60.0070.03712.01
5.4.50.0050.03712.01
5.4.40.0070.03512.00
5.4.30.0090.03912.00
5.4.20.0030.03712.00
5.4.10.0070.03812.00
5.4.00.0060.03511.49
5.3.290.0080.03812.80
5.3.280.0060.03612.71
5.3.270.0060.04012.73
5.3.260.0040.03912.72
5.3.250.0080.03512.72
5.3.240.0070.03512.72
5.3.230.0040.03912.71
5.3.220.0050.04612.68
5.3.210.0080.04212.68
5.3.200.0070.04312.68
5.3.190.0110.03212.68
5.3.180.0070.04112.67
5.3.170.0090.03812.66
5.3.160.0070.04512.68
5.3.150.0040.03912.68
5.3.140.0070.03612.66
5.3.130.0040.04112.66
5.3.120.0040.04112.66
5.3.110.0040.04012.66
5.3.100.0040.03912.11
5.3.90.0080.03512.08
5.3.80.0040.03912.08
5.3.70.0070.03912.08
5.3.60.0030.04112.07
5.3.50.0070.03812.00
5.3.40.0080.03512.00
5.3.30.0110.03711.95
5.3.20.0030.03911.73
5.3.10.0070.03411.70
5.3.00.0080.03911.68
5.2.170.0050.0319.18
5.2.160.0050.0279.18
5.2.150.0030.0319.18
5.2.140.0060.0299.18
5.2.130.0070.0319.14
5.2.120.0070.0269.14
5.2.110.0070.0279.15
5.2.100.0030.0309.14
5.2.90.0030.0319.14
5.2.80.0030.0319.14
5.2.70.0030.0339.14
5.2.60.0090.0279.09
5.2.50.0040.0329.06
5.2.40.0100.0349.04
5.2.30.0050.0329.01
5.2.20.0050.0349.00
5.2.10.0060.0338.93
5.2.00.0070.0298.78
5.1.60.0030.0258.07
5.1.50.0020.0278.07
5.1.40.0020.0278.05
5.1.30.0080.0248.40
5.1.20.0080.0238.41
5.1.10.0060.0248.14
5.1.00.0050.0348.14
5.0.50.0070.0176.62
5.0.40.0050.0176.48
5.0.30.0040.0316.29
5.0.20.0050.0206.27
5.0.10.0040.0186.24
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0040.0174.76
4.4.70.0020.0154.75
4.4.60.0030.0214.76
4.4.50.0010.0214.77
4.4.40.0030.0244.70
4.4.30.0040.0144.76
4.4.20.0050.0134.84
4.4.10.0030.0144.85
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0020.0154.67
4.3.90.0000.0174.64
4.3.80.0040.0254.59
4.3.70.0050.0184.63
4.3.60.0030.0164.63
4.3.50.0040.0194.63
4.3.40.0020.0304.54
4.3.30.0040.0173.29
4.3.20.0010.0193.27
4.3.10.0010.0183.22
4.3.00.0030.0236.86

preferences:
63.77 ms | 401 KiB | 5 Q