3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = new RecursiveArrayIterator(['test1', ['test2', 'test3']); $regex = new RecursiveRegexIterator($arr, '/^test/', RegexIterator::MATCH_ALL, 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)
5.4.320.0270.03719.05
5.4.310.0230.03718.98
5.4.300.0170.04319.05
5.4.290.0470.02719.07
5.4.280.0200.04018.91
5.4.270.0300.04018.98
5.4.260.0230.03719.07
5.4.250.0200.04319.11
5.4.240.0270.03319.08
5.4.230.0230.04018.95
5.4.220.0270.04019.04
5.4.210.0200.04019.07
5.4.200.0230.03719.07
5.4.190.0430.03719.14
5.4.180.0470.05018.98
5.4.170.0430.04318.84
5.4.160.0400.04318.83
5.4.150.0270.04318.89
5.4.140.0400.06716.32
5.4.130.0330.04016.65
5.4.120.0500.02716.33
5.4.110.0270.07316.60
5.4.100.0400.04716.50
5.4.90.0500.05316.40
5.4.80.0370.06316.35
5.4.70.0370.03716.44
5.4.60.0270.03716.40
5.4.50.0370.06716.47
5.4.40.0470.05016.43
5.4.30.0300.04316.52
5.4.20.0370.03716.55
5.4.10.0270.03716.25
5.4.00.0300.04715.80
5.3.290.0230.04014.57
5.3.280.0230.03714.54
5.3.270.0400.08314.47
5.3.260.0300.05014.70
5.3.250.0430.06014.59
5.3.240.0400.06014.70
5.3.230.0470.04714.43
5.3.220.0430.06314.66
5.3.210.0470.04714.52
5.3.200.0330.03714.43
5.3.190.0370.07014.44
5.3.180.0370.07014.52
5.3.170.0500.05314.51
5.3.160.0270.04014.50
5.3.150.0300.04714.47
5.3.140.0400.05714.41
5.3.130.0330.07314.50
5.3.120.0300.04014.41
5.3.110.0270.04014.42
5.3.100.0330.05713.99
5.3.90.0400.04713.98
5.3.80.0330.04313.92
5.3.70.0370.06313.96
5.3.60.0300.06713.91
5.3.50.0300.03313.82
5.3.40.0270.05713.92
5.3.30.0370.07013.76
5.3.20.0400.03713.64
5.3.10.0400.06013.50
5.3.00.0330.06313.46
5.2.170.0170.03011.04
5.2.160.0230.02311.15
5.2.150.0270.05710.98
5.2.140.0370.03311.24
5.2.130.0400.05010.94
5.2.120.0400.04010.94
5.2.110.0370.05010.99
5.2.100.0370.05011.04
5.2.90.0330.04311.13
5.2.80.0370.03310.95
5.2.70.0300.06310.93
5.2.60.0300.05710.98
5.2.50.0330.05710.95
5.2.40.0200.04710.82
5.2.30.0270.05310.80
5.2.20.0270.05710.80
5.2.10.0230.03710.77
5.2.00.0200.03010.62
5.1.60.0200.02710.15
5.1.50.0270.0539.97
5.1.40.0270.0539.90
5.1.30.0230.03710.49
5.1.20.0230.03310.21
5.1.10.0330.04010.16
5.1.00.0300.03010.11
5.0.50.0100.0278.66
5.0.40.0170.0438.30
5.0.30.0130.0508.20
5.0.20.0200.0208.11
5.0.10.0170.0408.14
5.0.00.0230.0408.06
4.4.90.0130.0377.84
4.4.80.0170.0337.84
4.4.70.0170.0277.84
4.4.60.0130.0307.84
4.4.50.0170.0277.84
4.4.40.0130.0477.84
4.4.30.0170.0307.84
4.4.20.0230.0277.84
4.4.10.0130.0207.84
4.4.00.0100.0377.84
4.3.110.0170.0337.84
4.3.100.0170.0337.84
4.3.90.0170.0277.84
4.3.80.0130.0537.84
4.3.70.0130.0237.84
4.3.60.0170.0307.84
4.3.50.0230.0237.84
4.3.40.0170.0477.84
4.3.30.0100.0207.84
4.3.20.0070.0207.84
4.3.10.0130.0137.84
4.3.00.0070.0237.84

preferences:
142 ms | 1394 KiB | 7 Q