3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = new RecursiveArrayIterator([['test2', 'test3']]); $regex = new RecursiveRegexIterator($arr, '/^test/', RecursiveRegexIterator::ALL_MATCHES, 1, 2); $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.0090.00618.43
8.3.60.0080.01118.15
8.3.50.0140.00722.06
8.3.40.0120.00618.80
8.3.30.0090.00618.92
8.3.20.0070.00020.29
8.3.10.0080.00020.66
8.3.00.0040.00419.38
8.2.180.0090.00618.43
8.2.170.0110.00422.96
8.2.160.0100.00719.13
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00422.23
8.2.110.0090.00020.47
8.2.100.0040.00718.03
8.2.90.0000.00818.93
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0030.01018.07
8.2.40.0000.00718.03
8.2.30.0040.00419.20
8.2.20.0040.00417.82
8.2.10.0000.00818.01
8.2.00.0030.00617.61
8.1.280.0180.00725.92
8.1.270.0040.00423.82
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0100.01022.00
8.1.230.0060.00623.93
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0050.00218.10
8.1.170.0120.00018.34
8.1.160.0070.00022.02
8.1.150.0000.00718.77
8.1.140.0070.00017.53
8.1.130.0030.00317.89
8.1.120.0000.00717.41
8.1.110.0000.00717.51
8.1.100.0000.00717.44
8.1.90.0000.00717.40
8.1.80.0050.00317.56
8.1.70.0000.00817.46
8.1.60.0060.00317.71
8.1.50.0000.00817.64
8.1.40.0000.00817.53
8.1.30.0080.00017.56
8.1.20.0030.00517.76
8.1.10.0030.00517.54
8.1.00.0040.00417.48
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0000.00718.38
8.0.270.0000.00717.16
8.0.260.0000.00717.27
8.0.250.0030.00317.04
8.0.240.0000.00717.04
8.0.230.0040.00317.04
8.0.220.0030.00316.87
8.0.210.0030.00517.01
8.0.200.0000.00616.90
8.0.190.0000.00816.91
8.0.180.0000.00716.88
8.0.170.0040.00417.02
8.0.160.0000.00716.96
8.0.150.0030.00316.84
8.0.140.0000.00716.97
8.0.130.0050.00013.49
8.0.120.0040.00416.84
8.0.110.0030.00517.04
8.0.100.0000.00716.84
8.0.90.0070.00016.77
8.0.80.0100.00716.93
8.0.70.0040.00416.90
8.0.60.0040.00417.02
8.0.50.0050.00316.84
8.0.30.0100.00917.07
8.0.20.0120.00817.40
8.0.10.0070.00017.15
8.0.00.0120.00816.82
7.4.330.0030.00315.04
7.4.320.0060.00016.57
7.4.300.0030.00316.63
7.4.290.0070.00016.66
7.4.280.0000.00716.74
7.4.270.0000.00616.74
7.4.260.0040.00416.60
7.4.250.0040.00416.61
7.4.240.0020.00516.72
7.4.230.0050.00216.75
7.4.220.0100.01016.77
7.4.210.0070.00716.75
7.4.200.0000.00716.56
7.4.160.0060.00916.71
7.4.150.0040.01417.40
7.4.140.0080.01217.86
7.4.130.0110.00916.65
7.4.120.0090.00816.66
7.4.110.0070.01016.54
7.4.100.0030.01416.44
7.4.90.0080.01616.61
7.4.80.0090.01416.53
7.4.70.0100.01016.68
7.4.60.0100.00716.65
7.4.50.0000.00816.35
7.4.40.0140.00416.60
7.4.30.0110.00416.72
7.4.00.0060.00914.94
7.3.330.0030.00313.03
7.3.320.0020.00213.22
7.3.310.0030.00316.11
7.3.300.0000.00716.34
7.3.290.0090.00616.32
7.3.280.0110.00916.33
7.3.270.0120.00617.40
7.3.260.0080.00816.82
7.3.250.0140.00516.56
7.3.240.0120.00416.35
7.3.230.0100.00716.39
7.3.210.0090.00616.73
7.3.200.0130.00919.39
7.3.190.0090.01016.25
7.3.180.0110.00716.66
7.3.170.0080.00816.50
7.3.160.0030.01216.31
7.3.120.0080.01214.81
7.3.110.0060.00915.05
7.3.100.0030.01014.97
7.3.90.0030.00614.53
7.3.80.0120.00314.93
7.3.70.0000.00914.89
7.3.60.0060.00614.84
7.3.50.0100.00314.65
7.3.40.0030.00814.88
7.3.30.0070.00714.88
7.3.20.0090.00616.70
7.3.10.0120.00316.58
7.3.00.0060.00916.44
7.2.330.0030.01416.52
7.2.320.0070.01116.59
7.2.310.0120.00616.54
7.2.300.0060.01116.54
7.2.290.0060.01916.79
7.2.250.0070.01115.09
7.2.240.0070.01414.78
7.2.230.0040.01114.96
7.2.220.0080.00315.23
7.2.210.0030.01014.97
7.2.200.0030.01015.18
7.2.190.0030.00914.69
7.2.180.0100.00314.95
7.2.170.0030.01315.07
7.2.00.0060.00919.57
7.1.330.0030.01416.03
7.1.320.0100.00315.82
7.1.310.0030.01016.01
7.1.300.0070.01115.75
7.1.290.0000.01215.78
7.1.280.0030.01015.62
7.1.270.0070.00715.60
7.1.260.0140.00015.46
7.1.100.0150.00918.12
7.1.70.0040.00417.41
7.1.60.0160.01019.32
7.1.50.0060.01017.05
7.1.00.0030.07322.38
7.0.200.0040.00416.76
7.0.140.0100.06322.09
7.0.60.0070.05319.82
7.0.50.0070.07317.84
7.0.40.0030.08020.00
7.0.30.0230.05320.16
7.0.20.0230.05020.13
7.0.10.0030.08720.18
7.0.00.0100.07320.02
5.6.280.0130.06320.82
5.6.210.0130.07320.54
5.6.200.0030.05018.11
5.6.190.0030.04720.28
5.6.180.0470.05720.32
5.6.170.0430.07020.37
5.6.160.0100.04020.55
5.6.150.0100.10318.20
5.6.140.0130.07718.09
5.6.130.0070.04018.17
5.6.120.0100.08020.80
5.6.110.0030.08321.13
5.6.100.0030.06021.13
5.6.90.0100.04320.98
5.6.80.0100.07720.40
5.5.350.0200.06720.30
5.5.340.0030.08717.94
5.5.330.0100.08720.15
5.5.320.0330.04720.17
5.5.310.0200.06720.13
5.5.300.0070.05017.91
5.5.290.0130.07017.87
5.5.280.0070.04020.88
5.5.270.0030.06320.85
5.5.260.0000.06720.86
5.5.250.0070.08720.58
5.5.240.0130.07320.15
5.4.450.0100.05719.52
5.4.440.0800.05719.32
5.4.430.0630.07019.62
5.4.420.0970.05319.34
5.4.410.1200.04319.34
5.4.400.0700.05719.18
5.4.390.1100.06319.00
5.4.380.0270.06018.78
5.4.370.0200.06718.50
5.4.360.0430.04718.57
5.4.350.0330.05318.65
5.4.340.0300.06018.50
5.4.320.0050.03612.46
5.4.310.0040.04012.45
5.4.300.0030.04512.46
5.4.290.0070.03612.45
5.4.280.0060.03412.35
5.4.270.0030.03812.35
5.4.260.0050.03812.35
5.4.250.0040.03912.35
5.4.240.0050.03712.35
5.4.230.0090.03712.34
5.4.220.0100.03612.34
5.4.210.0050.03512.34
5.4.200.0060.03712.34
5.4.190.0090.03212.34
5.4.180.0070.04212.34
5.4.170.0050.03612.35
5.4.160.0070.03512.34
5.4.150.0070.03512.34
5.4.140.0100.03412.03
5.4.130.0090.03612.01
5.4.120.0050.03611.97
5.4.110.0050.03611.96
5.4.100.0060.03411.97
5.4.90.0050.03811.97
5.4.80.0030.04011.96
5.4.70.0030.03911.96
5.4.60.0050.03511.96
5.4.50.0080.03211.96
5.4.40.0070.03511.95
5.4.30.0020.05011.95
5.4.20.0070.03911.95
5.4.10.0040.03511.95
5.4.00.0080.04011.44
5.3.290.0070.05012.80
5.3.280.0090.03512.70
5.3.270.0090.03612.72
5.3.260.0060.03712.72
5.3.250.0060.03712.72
5.3.240.0060.04012.72
5.3.230.0040.03912.71
5.3.220.0070.04112.68
5.3.210.0080.03612.68
5.3.200.0100.04412.68
5.3.190.0050.03712.68
5.3.180.0110.03812.67
5.3.170.0060.04012.67
5.3.160.0070.03412.67
5.3.150.0060.03712.67
5.3.140.0040.03712.66
5.3.130.0080.03612.66
5.3.120.0080.03512.66
5.3.110.0070.03612.66
5.3.100.0040.03812.12
5.3.90.0060.03512.08
5.3.80.0080.03312.07
5.3.70.0060.04312.07
5.3.60.0070.03512.06
5.3.50.0070.03512.00
5.3.40.0040.04012.00
5.3.30.0070.03411.95
5.3.20.0050.03611.73
5.3.10.0060.03311.70
5.3.00.0050.04211.68
5.2.170.0040.0309.18
5.2.160.0050.0289.18
5.2.150.0050.0349.18
5.2.140.0070.0349.18
5.2.130.0070.0369.14
5.2.120.0040.0319.14
5.2.110.0060.0319.15
5.2.100.0050.0289.14
5.2.90.0040.0359.15
5.2.80.0000.0419.14
5.2.70.0070.0349.14
5.2.60.0060.0299.09
5.2.50.0050.0359.06
5.2.40.0030.0309.04
5.2.30.0030.0319.01
5.2.20.0060.0299.00
5.2.10.0020.0308.92
5.2.00.0040.0298.79
5.1.60.0030.0268.07
5.1.50.0060.0228.06
5.1.40.0050.0228.05
5.1.30.0070.0238.40
5.1.20.0050.0288.42
5.1.10.0070.0268.14
5.1.00.0050.0258.14
5.0.50.0040.0196.62
5.0.40.0060.0166.48
5.0.30.0070.0296.29
5.0.20.0040.0186.27
5.0.10.0020.0216.24
5.0.00.0020.0316.23
4.4.90.0020.0164.78
4.4.80.0020.0154.75
4.4.70.0010.0164.75
4.4.60.0030.0144.75
4.4.50.0040.0134.77
4.4.40.0010.0264.71
4.4.30.0040.0144.76
4.4.20.0030.0224.85
4.4.10.0040.0144.85
4.4.00.0010.0264.76
4.3.110.0040.0144.67
4.3.100.0040.0204.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0050.0134.63
4.3.60.0040.0134.62
4.3.50.0010.0174.63
4.3.40.0030.0244.54
4.3.30.0030.0173.29
4.3.20.0040.0143.26
4.3.10.0020.0153.22
4.3.00.0030.0236.87

preferences:
40.57 ms | 401 KiB | 5 Q