3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(array("tmp", "foo", "bar", "bazbar")); $it = new RegexIterator($it, "/ba(.)/", RegexIterator::ALL_MATCHES); echo count(iterator_to_array($it));

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.01418.55
8.3.50.0160.00321.99
8.3.40.0090.00618.79
8.3.30.0040.01218.95
8.3.20.0040.00420.14
8.3.10.0040.00420.41
8.3.00.0030.00617.63
8.2.180.0140.00025.92
8.2.170.0040.01118.91
8.2.160.0110.00420.52
8.2.150.0070.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00419.76
8.2.110.0100.00021.18
8.2.100.0080.00417.91
8.2.90.0100.00020.01
8.2.80.0040.00417.75
8.2.70.0030.00617.75
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0030.00619.88
8.2.30.0060.00318.09
8.2.20.0040.00417.71
8.2.10.0030.00617.95
8.2.00.0000.00717.82
8.1.280.0070.01125.92
8.1.270.0040.00420.65
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00322.48
8.1.230.0070.00420.96
8.1.220.0060.00317.74
8.1.210.0040.00418.88
8.1.200.0050.00517.48
8.1.190.0000.00817.48
8.1.180.0080.00022.15
8.1.170.0040.00418.87
8.1.160.0050.00218.87
8.1.150.0000.00718.82
8.1.140.0040.00417.50
8.1.130.0040.00417.80
8.1.120.0050.00217.57
8.1.110.0050.00317.51
8.1.100.0040.00417.59
8.1.90.0030.00517.59
8.1.80.0050.00217.60
8.1.70.0000.00717.59
8.1.60.0090.00017.75
8.1.50.0030.00617.69
8.1.40.0110.00017.66
8.1.30.0000.00817.85
8.1.20.0090.00017.75
8.1.10.0040.00417.60
8.1.00.0020.00517.67
8.0.300.0070.00019.86
8.0.290.0040.00416.88
8.0.280.0030.00318.52
8.0.270.0040.00416.97
8.0.260.0000.00617.28
8.0.250.0070.00017.12
8.0.240.0040.00417.06
8.0.230.0050.00216.97
8.0.220.0060.00017.00
8.0.210.0030.00316.97
8.0.200.0030.00316.96
8.0.190.0000.00817.06
8.0.180.0000.00717.09
8.0.170.0040.00417.05
8.0.160.0040.00316.99
8.0.150.0000.00817.00
8.0.140.0040.00416.96
8.0.130.0030.00313.51
8.0.120.0040.00416.91
8.0.110.0050.00217.07
8.0.100.0040.00416.85
8.0.90.0040.00417.00
8.0.80.0130.00616.99
8.0.70.0030.00516.95
8.0.60.0040.00416.90
8.0.50.0040.00416.98
8.0.30.0100.01617.05
8.0.20.0110.01017.40
8.0.10.0040.00417.17
8.0.00.0130.00716.86
7.4.330.0000.00515.07
7.4.320.0000.00616.73
7.4.300.0060.00016.73
7.4.290.0000.00716.72
7.4.280.0050.00316.68
7.4.270.0000.00816.72
7.4.260.0000.00716.65
7.4.250.0000.00716.81
7.4.240.0050.00316.80
7.4.230.0000.00816.92
7.4.220.0160.00016.80
7.4.210.0100.00616.68
7.4.200.0000.00716.84
7.4.160.0100.00616.82
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0080.01016.57
7.4.120.0110.00816.68
7.4.110.0130.01016.79
7.4.100.0100.00716.80
7.4.90.0100.00716.62
7.4.80.0090.01219.39
7.4.70.0100.00716.71
7.4.60.0070.01416.74
7.4.50.0030.00616.70
7.4.40.0070.01016.57
7.4.30.0110.00516.76
7.4.00.0080.00915.06
7.3.330.0030.00313.10
7.3.320.0030.00313.29
7.3.310.0070.00016.42
7.3.300.0000.00716.26
7.3.290.0070.00716.35
7.3.280.0120.00516.32
7.3.270.0060.01017.40
7.3.260.0140.00716.56
7.3.250.0070.01116.55
7.3.240.0040.01316.43
7.3.230.0060.01316.39
7.3.210.0120.00416.67
7.3.200.0130.00316.37
7.3.190.0130.01316.40
7.3.180.0060.00916.34
7.3.170.0180.01716.63
7.3.160.0070.01116.50
7.3.120.0030.01314.62
7.3.110.0110.00314.90
7.3.100.0100.00315.20
7.3.90.0080.00814.70
7.3.80.0100.00614.86
7.3.70.0040.00814.72
7.3.60.0000.01514.72
7.3.50.0030.01015.00
7.3.40.0070.00414.78
7.3.30.0040.00715.03
7.3.20.0080.00316.93
7.3.10.0030.01216.75
7.3.00.0110.00416.49
7.2.330.0100.00716.60
7.2.320.0070.01416.66
7.2.310.0140.00416.82
7.2.300.0130.00316.60
7.2.290.0100.01316.64
7.2.250.0130.00315.29
7.2.240.0040.01615.37
7.2.230.0100.00715.14
7.2.220.0050.00515.38
7.2.210.0060.00915.33
7.2.200.0070.01115.32
7.2.190.0120.00315.23
7.2.180.0060.01014.96
7.2.170.0060.00815.14
7.2.60.0070.00717.01
7.2.00.0060.00919.67
7.1.330.0110.00416.05
7.1.320.0060.00615.61
7.1.310.0030.00615.93
7.1.300.0100.00315.80
7.1.290.0090.00615.93
7.1.280.0030.01016.12
7.1.270.0070.00315.93
7.1.260.0080.00015.86
7.1.200.0000.01215.72
7.1.100.0030.01018.25
7.1.70.0040.00417.07
7.1.60.0140.00719.18
7.1.50.0110.01117.16
7.1.00.0070.07322.38
7.0.200.0120.00416.86
7.0.140.0030.07322.14
7.0.60.0200.08021.63
7.0.50.0100.04017.91
7.0.40.0230.05020.00
7.0.30.0230.08020.20
7.0.20.0370.08020.20
7.0.10.0130.08320.13
7.0.00.0070.04020.18
5.6.280.0070.07320.81
5.6.210.0100.07320.62
5.6.200.0100.05318.23
5.6.190.0270.05020.56
5.6.180.0270.08720.63
5.6.170.0270.08020.33
5.6.160.0130.08020.48
5.6.150.0070.08018.16
5.6.140.0030.03718.09
5.6.130.0170.06718.20
5.6.120.0170.05020.89
5.6.110.0100.08020.95
5.6.100.0070.07720.96
5.6.90.0200.07021.11
5.6.80.0000.04020.38
5.5.350.0100.07720.40
5.5.340.0030.05017.93
5.5.330.0100.05720.40
5.5.320.0330.07020.24
5.5.310.0230.08020.29
5.5.300.0000.05018.05
5.5.290.0100.04017.96
5.5.280.0130.07720.77
5.5.270.0030.08720.85
5.5.260.0070.05020.75
5.5.250.0030.04320.65
5.5.240.0030.04720.15
5.4.450.0200.05019.55
5.4.440.1270.07319.07
5.4.430.0700.06319.63
5.4.420.0070.06019.43
5.4.410.0070.06019.45
5.4.400.0270.06318.61
5.4.390.0370.04718.72
5.4.380.0400.07318.58
5.4.370.1130.05718.50
5.4.360.0170.05718.50
5.4.350.0100.03411.97
5.4.340.0080.03811.97
5.4.320.0080.04112.46
5.4.310.0040.04412.45
5.4.300.0070.04212.46
5.4.290.0070.04212.45
5.4.280.0060.04012.35
5.4.270.0070.03512.35
5.4.260.0070.04112.35
5.4.250.0080.04312.35
5.4.240.0100.05812.35
5.4.230.0080.04912.34
5.4.220.0080.05312.34
5.4.210.0150.04812.34
5.4.200.0080.03812.34
5.4.190.0070.03712.34
5.4.180.0090.03712.34
5.4.170.0070.03512.35
5.4.160.0050.03812.34
5.4.150.0040.03812.34
5.4.140.0070.03712.02
5.4.130.0070.04212.02
5.4.120.0070.05011.97
5.4.110.0060.04111.97
5.4.100.0070.03711.97
5.4.90.0090.03611.96
5.4.80.0040.04411.96
5.4.70.0070.03611.96
5.4.60.0050.03611.96
5.4.50.0100.03711.96
5.4.40.0070.03511.95
5.4.30.0090.04111.94
5.4.20.0100.03611.95
5.4.10.0080.03711.95
5.4.00.0060.03711.44
5.3.290.0070.04012.80
5.3.280.0050.04712.71
5.3.270.0050.04812.73
5.3.260.0090.04012.72
5.3.250.0050.03912.71
5.3.240.0040.04512.72
5.3.230.0070.04012.71
5.3.220.0080.03512.68
5.3.210.0070.04212.68
5.3.200.0080.03512.68
5.3.190.0090.04312.68
5.3.180.0090.05012.67
5.3.170.0090.04112.67
5.3.160.0060.04112.67
5.3.150.0120.04412.67
5.3.140.0060.03912.66
5.3.130.0060.04012.66
5.3.120.0090.04212.66
5.3.110.0100.03512.66
5.3.100.0060.03712.12
5.3.90.0040.04912.08
5.3.80.0110.03312.08
5.3.70.0070.03612.08
5.3.60.0080.03812.06
5.3.50.0040.04012.00
5.3.40.0060.03612.00
5.3.30.0120.03911.96
5.3.20.0040.04011.75
5.3.10.0060.03811.70
5.3.00.0090.03711.69
5.2.170.0060.0359.20
5.2.160.0090.0299.19
5.2.150.0050.0339.19
5.2.140.0110.0259.19
5.2.130.0030.0319.15
5.2.120.0050.0299.15
5.2.110.0070.0279.16
5.2.100.0050.0289.15
5.2.90.0060.0289.16
5.2.80.0040.0329.16
5.2.70.0040.0309.15
5.2.60.0050.0299.10
5.2.50.0050.0329.07
5.2.40.0050.0289.05
5.2.30.0040.0319.03
5.2.20.0070.0289.02
5.2.10.0040.0288.94
5.2.00.0060.0298.79
5.1.60.0020.0308.06
5.1.50.0050.0288.06
5.1.40.0040.0278.05
5.1.30.0040.0298.40
5.1.20.0030.0328.42
5.1.10.0040.0258.14
5.1.00.0050.0298.14
5.0.50.0060.0236.62
5.0.40.0060.0236.47
5.0.30.0050.0316.29
5.0.20.0010.0236.26
5.0.10.0040.0226.24
5.0.00.0050.0346.23
4.4.90.0040.0164.77
4.4.80.0040.0264.75
4.4.70.0040.0164.75
4.4.60.0010.0184.75
4.4.50.0020.0174.77
4.4.40.0030.0264.70
4.4.30.0060.0124.76
4.4.20.0010.0184.84
4.4.10.0040.0164.85
4.4.00.0070.0304.76
4.3.110.0020.0234.67
4.3.100.0050.0194.66
4.3.90.0010.0244.64
4.3.80.0030.0314.58
4.3.70.0090.0284.63
4.3.60.0040.0174.62
4.3.50.0060.0144.62
4.3.40.0000.0274.54
4.3.30.0030.0173.29
4.3.20.0010.0173.26
4.3.10.0030.0173.23
4.3.00.0170.0239.85

preferences:
56.04 ms | 401 KiB | 5 Q