3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getInbetweenStrings($start, $end, $str){ $matches = array(); $regex = "/$start(.*)$end/"; preg_match_all($regex, $str, $matches); return $matches[1]; } $str = "@@<><><><><><><>@@@@TEST, TEST@@"; $str_arr = getInbetweenStrings('@@', '@@', $str); print_r($str_arr); ?>

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.0110.00717.00
8.3.50.0170.00318.40
8.3.40.0100.01018.98
8.3.30.0000.01519.06
8.3.20.0050.00320.32
8.3.10.0080.00023.68
8.3.00.0060.00317.77
8.2.180.0130.00318.55
8.2.170.0120.00322.96
8.2.160.0040.01120.38
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0060.00319.61
8.2.110.0070.00322.44
8.2.100.0080.00318.16
8.2.90.0030.00619.20
8.2.80.0030.00517.97
8.2.70.0040.00417.88
8.2.60.0090.00317.68
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0020.00518.29
8.2.20.0050.00317.85
8.2.10.0040.00418.22
8.2.00.0040.00417.98
8.1.280.0110.00325.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.81
8.1.230.0080.00319.10
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0060.00317.36
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0040.00421.99
8.1.150.0000.00718.64
8.1.140.0000.00717.62
8.1.130.0000.00717.86
8.1.120.0040.00417.63
8.1.110.0040.00417.45
8.1.100.0040.00417.55
8.1.90.0040.00417.61
8.1.80.0040.00417.45
8.1.70.0000.00717.50
8.1.60.0060.00317.77
8.1.50.0000.00917.75
8.1.40.0080.00017.56
8.1.30.0030.00617.91
8.1.20.0040.00417.70
8.1.10.0030.00517.75
8.1.00.0030.00617.76
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.40
8.0.270.0070.00017.25
8.0.260.0000.00717.26
8.0.250.0070.00017.14
8.0.240.0000.00917.08
8.0.230.0000.00716.97
8.0.220.0000.00717.02
8.0.210.0050.00217.04
8.0.200.0080.00017.03
8.0.190.0030.00517.02
8.0.180.0040.00417.13
8.0.170.0040.00416.94
8.0.160.0030.00316.96
8.0.150.0030.00416.97
8.0.140.0040.00416.99
8.0.130.0060.00013.41
8.0.120.0030.00516.91
8.0.110.0070.00017.08
8.0.100.0040.00416.88
8.0.90.0000.00717.10
8.0.80.0040.01117.02
8.0.70.0020.00517.05
8.0.60.0000.00816.88
8.0.50.0070.00016.96
8.0.30.0100.00917.19
8.0.20.0110.00917.47
8.0.10.0040.00416.91
8.0.00.0120.00916.92
7.4.330.0030.00315.00
7.4.320.0060.00016.82
7.4.300.0060.00016.86
7.4.290.0060.00316.73
7.4.280.0030.00316.87
7.4.270.0040.00416.70
7.4.260.0000.00816.81
7.4.250.0040.00416.70
7.4.240.0020.00516.85
7.4.230.0000.00716.66
7.4.220.0130.00916.77
7.4.210.0070.01416.78
7.4.200.0000.00816.94
7.4.160.0060.00916.90
7.4.150.0180.00017.40
7.4.140.0070.01317.86
7.4.130.0080.00816.77
7.4.120.0100.00916.90
7.4.110.0100.01316.73
7.4.100.0050.01616.82
7.4.90.0120.00616.75
7.4.80.0160.00719.39
7.4.70.0080.00816.68
7.4.60.0090.00916.68
7.4.50.0000.00916.54
7.4.40.0090.00916.70
7.4.30.0090.00616.65
7.4.00.0070.01114.94
7.3.330.0030.00313.47
7.3.320.0030.00313.26
7.3.310.0070.00016.36
7.3.300.0030.00316.36
7.3.290.0250.00316.54
7.3.280.0090.00916.46
7.3.270.0120.00617.40
7.3.260.0100.00716.43
7.3.250.0130.00516.72
7.3.240.0150.00616.51
7.3.230.0040.01516.45
7.3.210.0100.00716.88
7.3.200.0110.00619.39
7.3.190.0140.00316.48
7.3.180.0060.00916.59
7.3.170.0100.01016.65
7.3.160.0060.00916.74
7.3.120.0070.00714.64
7.2.330.0090.00916.80
7.2.320.0110.00516.72
7.2.310.0060.01116.84
7.2.300.0030.01316.97
7.2.290.0090.01316.81
7.2.00.0080.00419.38
7.1.100.0040.00718.43
7.1.70.0080.00817.43
7.1.60.0110.01519.70
7.1.50.0000.01117.17
7.1.00.0000.07722.47
7.0.200.0000.00716.84
7.0.140.0070.06721.97
7.0.60.0000.06019.95
7.0.50.0070.07317.91
7.0.40.0070.05020.27
7.0.30.0200.04020.25
7.0.20.0430.06320.08
7.0.10.0100.04020.17
7.0.00.0130.06020.27
5.6.280.0000.07720.99
5.6.210.0030.08020.55
5.6.200.0100.07018.20
5.6.190.0030.06720.53
5.6.180.3370.04020.34
5.6.170.0330.08020.54
5.6.160.0030.07720.46
5.6.150.0070.07018.33
5.6.140.0070.08018.23
5.6.130.0100.07018.14
5.6.120.0170.07721.02
5.6.110.0100.07020.89
5.6.100.0100.08020.98
5.6.90.0000.05021.00
5.6.80.0030.07320.40
5.6.70.4230.03720.28
5.5.350.0070.06020.32
5.5.340.0000.08318.07
5.5.330.0030.04020.42
5.5.320.0230.06720.37
5.5.310.0270.05020.23
5.5.300.0070.05017.94
5.5.290.0030.05018.14
5.5.280.0100.08020.66
5.5.270.0070.04020.76
5.5.260.0100.08320.77
5.5.250.0070.07720.68
5.5.240.0400.06720.18
5.4.450.0070.05043.77
5.4.440.0400.04743.77
5.4.430.0170.05037.49
5.4.420.0300.04337.18
5.4.410.0370.04337.16
5.4.400.0400.03337.17
5.4.390.0230.03333.63
5.4.380.0130.06018.74
5.4.370.0330.05318.79
5.4.360.0300.05018.63
5.4.350.0270.06318.79
5.4.340.0300.05018.74
5.4.320.0040.04212.50
5.4.310.0080.03912.50
5.4.300.0090.04312.51
5.4.290.0060.03912.50
5.4.280.0090.03212.40
5.4.270.0050.03712.40
5.4.260.0070.05112.39
5.4.250.0070.03912.39
5.4.240.0060.03712.40
5.4.230.0050.03712.39
5.4.220.0050.03512.39
5.4.210.0040.03812.39
5.4.200.0080.03512.39
5.4.190.0080.03712.39
5.4.180.0080.03312.38
5.4.170.0080.03412.39
5.4.160.0060.03712.39
5.4.150.0060.03512.38
5.4.140.0060.03812.07
5.4.130.0060.03512.05
5.4.120.0100.03812.02
5.4.110.0070.04112.01
5.4.100.0060.04012.01
5.4.90.0050.04312.01
5.4.80.0100.03112.01
5.4.70.0040.03712.01
5.4.60.0050.03512.01
5.4.50.0040.04712.01
5.4.40.0070.04211.99
5.4.30.0070.03311.99
5.4.20.0060.03411.99
5.4.10.0060.03512.00
5.4.00.0030.04511.48
5.3.290.0100.03612.80
5.3.280.0060.03712.71
5.3.270.0060.03912.73
5.3.260.0030.04212.72
5.3.250.0070.03612.72
5.3.240.0040.04012.72
5.3.230.0040.04012.71
5.3.220.0060.04112.68
5.3.210.0060.03812.68
5.3.200.0090.04412.68
5.3.190.0070.03612.68
5.3.180.0070.03412.67
5.3.170.0090.03612.67
5.3.160.0050.03612.68
5.3.150.0070.03512.67
5.3.140.0100.03812.66
5.3.130.0080.03612.66
5.3.120.0080.03612.66
5.3.110.0040.04012.66
5.3.100.0110.03812.13
5.3.90.0070.03512.11
5.3.80.0040.03812.10
5.3.70.0050.03612.10
5.3.60.0030.03812.09
5.3.50.0070.04012.04
5.3.40.0040.03812.03
5.3.30.0070.04011.99
5.3.20.0050.04211.77
5.3.10.0090.03611.74
5.3.00.0040.04111.73
5.2.170.0080.0329.23
5.2.160.0050.0289.23
5.2.150.0050.0389.23
5.2.140.0090.0289.22
5.2.130.0060.0279.18
5.2.120.0100.0259.19
5.2.110.0070.0339.19
5.2.100.0050.0319.18
5.2.90.0020.0319.18
5.2.80.0060.0289.18
5.2.70.0070.0279.18
5.2.60.0060.0289.14
5.2.50.0040.0309.10
5.2.40.0070.0269.08
5.2.30.0040.0309.06
5.2.20.0050.0279.06
5.2.10.0040.0338.94
5.2.00.0070.0258.80
5.1.60.0060.0288.09
5.1.50.0030.0278.08
5.1.40.0050.0238.06
5.1.30.0040.0268.41
5.1.20.0070.0238.43
5.1.10.0070.0258.16
5.1.00.0020.0278.17
5.0.50.0060.0246.64
5.0.40.0050.0176.50
5.0.30.0040.0306.31
5.0.20.0020.0276.27
5.0.10.0040.0186.26
5.0.00.0030.0306.25
4.4.90.0010.0184.78
4.4.80.0020.0154.76
4.4.70.0030.0144.75
4.4.60.0050.0124.75
4.4.50.0050.0184.77
4.4.40.0040.0234.71
4.4.30.0030.0174.76
4.4.20.0060.0134.85
4.4.10.0030.0144.84
4.4.00.0040.0284.76
4.3.110.0020.0164.67
4.3.100.0030.0164.67
4.3.90.0010.0224.63
4.3.80.0030.0314.59
4.3.70.0030.0144.63
4.3.60.0060.0144.63
4.3.50.0030.0154.63
4.3.40.0010.0254.53
4.3.30.0010.0163.30
4.3.20.0030.0143.27
4.3.10.0010.0163.24
4.3.00.0030.01733.62

preferences:
136.9 ms | 400 KiB | 5 Q