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 = "C://@@ad_cu<>><FSD>FSDFsdfsadjfa#@%@#@#''stom_attr1@@/@@upn@@/@@samaccountname@@"; $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.0120.00316.75
8.3.50.0020.01321.97
8.3.40.0140.00419.07
8.3.30.0100.00719.27
8.3.20.0040.00420.31
8.3.10.0040.00423.71
8.3.00.0100.00018.05
8.2.180.0140.00718.41
8.2.170.0090.00622.96
8.2.160.0100.00322.11
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00619.61
8.2.110.0000.01022.20
8.2.100.0080.00318.09
8.2.90.0040.00419.12
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0040.00418.34
8.2.20.0070.00018.02
8.2.10.0030.00618.05
8.2.00.0000.00819.59
8.1.280.0040.01425.92
8.1.270.0040.00424.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.98
8.1.230.0040.00819.09
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0040.00418.58
8.1.160.0000.00722.05
8.1.150.0040.00418.74
8.1.140.0000.00717.60
8.1.130.0040.00417.88
8.1.120.0050.00217.54
8.1.110.0000.00817.48
8.1.100.0000.00817.58
8.1.90.0000.00817.47
8.1.80.0040.00417.57
8.1.70.0070.00017.51
8.1.60.0030.00617.79
8.1.50.0050.00317.55
8.1.40.0000.00717.65
8.1.30.0080.00017.82
8.1.20.0040.00417.77
8.1.10.0060.00317.71
8.1.00.0040.00417.68
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.40
8.0.270.0070.00017.29
8.0.260.0070.00017.30
8.0.250.0000.00717.06
8.0.240.0000.01017.00
8.0.230.0070.00017.09
8.0.220.0070.00017.02
8.0.210.0000.00817.05
8.0.200.0020.00517.18
8.0.190.0040.00417.04
8.0.180.0030.00517.11
8.0.170.0040.00417.13
8.0.160.0000.00716.95
8.0.150.0060.00417.07
8.0.140.0030.00316.93
8.0.130.0000.00713.49
8.0.120.0050.00517.06
8.0.110.0040.00416.91
8.0.100.0030.00516.93
8.0.90.0000.00716.88
8.0.80.0060.01516.99
8.0.70.0070.00017.13
8.0.60.0000.00717.13
8.0.50.0050.00317.17
8.0.30.0130.01117.47
8.0.20.0140.00817.40
8.0.10.0000.00717.07
8.0.00.0100.00716.81
7.4.330.0060.00015.00
7.4.320.0030.00316.71
7.4.300.0030.00316.72
7.4.290.0030.00616.82
7.4.280.0030.00316.78
7.4.270.0050.00316.75
7.4.260.0030.00316.84
7.4.250.0080.00016.87
7.4.240.0040.00316.80
7.4.230.0000.00716.81
7.4.220.0090.01016.79
7.4.210.0140.00716.80
7.4.200.0000.00716.84
7.4.160.0060.00916.69
7.4.150.0100.01017.40
7.4.140.0100.00817.86
7.4.130.0090.00916.62
7.4.120.0150.00716.72
7.4.110.0080.00816.51
7.4.100.0060.01516.71
7.4.90.0130.00316.64
7.4.80.0040.01719.39
7.4.70.0110.00716.45
7.4.60.0100.00616.68
7.4.50.0030.00616.57
7.4.40.0090.00616.57
7.4.30.0080.00816.78
7.4.00.0080.00815.31
7.3.330.0030.00313.46
7.3.320.0000.00513.26
7.3.310.0060.00016.50
7.3.300.0030.00316.48
7.3.290.0080.00816.42
7.3.280.0080.01116.46
7.3.270.0070.01017.40
7.3.260.0110.00716.75
7.3.250.0090.01016.69
7.3.240.0030.01316.81
7.3.230.0000.02216.50
7.3.210.0120.00616.46
7.3.200.0120.00319.39
7.3.190.0140.00416.73
7.3.180.0100.01016.59
7.3.170.0060.01316.87
7.3.160.0000.01516.83
7.3.120.0110.00414.97
7.2.330.0060.01216.94
7.2.320.0110.00516.62
7.2.310.0160.00016.91
7.2.300.0000.01716.92
7.2.290.0060.01216.58
7.2.00.0080.00419.26
7.1.100.0070.00718.14
7.1.70.0120.00617.33
7.1.60.0130.00719.70
7.1.50.0110.01117.18
7.1.00.0000.08022.55
7.0.200.0070.00316.60
7.0.140.0070.07022.07
7.0.60.0200.04719.95
7.0.50.0130.07317.87
7.0.40.0070.09320.27
7.0.30.0230.05020.18
7.0.20.0070.05020.11
7.0.10.0170.04020.13
7.0.00.0030.05320.07
5.6.280.0030.07321.07
5.6.210.0030.07720.75
5.6.200.0030.04318.18
5.6.190.0200.04720.48
5.6.180.0430.08020.48
5.6.170.0130.04320.46
5.6.160.0030.08720.45
5.6.150.0100.03718.27
5.6.140.0100.07318.28
5.6.130.0130.07718.23
5.6.120.0030.09021.02
5.6.110.0270.05020.90
5.6.100.0030.06320.95
5.6.90.0070.08720.97
5.6.80.0070.08320.40
5.6.70.0300.07720.51
5.5.350.0100.07720.36
5.5.340.0070.04717.95
5.5.330.0170.07320.19
5.5.320.0170.04720.30
5.5.310.0270.07020.36
5.5.300.0070.03718.10
5.5.290.0000.05317.96
5.5.280.0100.08320.98
5.5.270.0130.03320.86
5.5.260.0000.06320.73
5.5.250.0070.06720.49
5.5.240.0000.04020.36
5.4.450.0130.05043.77
5.4.440.0370.04343.77
5.4.430.0300.03338.99
5.4.420.0370.04337.18
5.4.410.0270.04037.16
5.4.400.0230.04733.66
5.4.390.0330.03033.63
5.4.380.0370.05018.75
5.4.370.0230.04718.73
5.4.360.0130.05718.65
5.4.350.0230.05718.68
5.4.340.0170.05718.73
5.4.320.0040.03812.50
5.4.310.0020.04112.50
5.4.300.0070.04012.51
5.4.290.0050.04212.50
5.4.280.0080.04012.39
5.4.270.0080.03412.39
5.4.260.0050.04612.40
5.4.250.0050.04512.40
5.4.240.0050.03712.40
5.4.230.0050.03812.39
5.4.220.0080.04012.39
5.4.210.0040.03712.39
5.4.200.0070.03612.39
5.4.190.0060.03612.39
5.4.180.0050.03712.38
5.4.170.0040.03812.39
5.4.160.0030.03912.39
5.4.150.0070.03512.39
5.4.140.0050.04312.07
5.4.130.0060.03812.05
5.4.120.0120.03912.02
5.4.110.0060.04212.01
5.4.100.0030.04212.01
5.4.90.0080.03712.02
5.4.80.0050.03812.01
5.4.70.0070.03412.01
5.4.60.0070.03512.01
5.4.50.0110.03612.01
5.4.40.0050.03911.99
5.4.30.0060.04112.00
5.4.20.0110.03912.00
5.4.10.0070.03811.99
5.4.00.0040.03911.48
5.3.290.0060.03812.80
5.3.280.0080.03712.71
5.3.270.0070.04012.73
5.3.260.0030.04312.72
5.3.250.0050.03912.72
5.3.240.0050.03912.72
5.3.230.0050.03812.71
5.3.220.0070.03612.68
5.3.210.0040.04012.68
5.3.200.0090.04412.68
5.3.190.0110.03312.67
5.3.180.0040.03812.67
5.3.170.0060.03612.67
5.3.160.0030.04012.67
5.3.150.0050.03812.67
5.3.140.0070.03612.66
5.3.130.0070.03712.66
5.3.120.0060.03812.66
5.3.110.0060.03912.66
5.3.100.0110.04112.13
5.3.90.0060.03712.11
5.3.80.0050.03812.11
5.3.70.0020.04112.11
5.3.60.0040.03912.09
5.3.50.0040.03912.04
5.3.40.0040.04012.03
5.3.30.0040.03711.99
5.3.20.0090.03711.77
5.3.10.0040.03711.74
5.3.00.0050.03711.73
5.2.170.0050.0309.23
5.2.160.0060.0289.23
5.2.150.0070.0319.23
5.2.140.0070.0479.22
5.2.130.0010.0349.18
5.2.120.0030.0309.18
5.2.110.0040.0359.19
5.2.100.0060.0349.18
5.2.90.0070.0279.18
5.2.80.0030.0329.18
5.2.70.0040.0319.18
5.2.60.0060.0299.14
5.2.50.0030.0339.11
5.2.40.0070.0329.08
5.2.30.0040.0309.06
5.2.20.0040.0299.05
5.2.10.0050.0278.94
5.2.00.0020.0318.80
5.1.60.0050.0238.09
5.1.50.0030.0278.09
5.1.40.0050.0258.06
5.1.30.0050.0258.41
5.1.20.0050.0258.43
5.1.10.0020.0288.16
5.1.00.0020.0278.16
5.0.50.0060.0186.64
5.0.40.0010.0226.50
5.0.30.0050.0336.31
5.0.20.0040.0196.28
5.0.10.0020.0216.26
5.0.00.0060.0286.25
4.4.90.0030.0154.77
4.4.80.0040.0154.75
4.4.70.0030.0154.75
4.4.60.0040.0154.76
4.4.50.0050.0214.77
4.4.40.0040.0244.71
4.4.30.0030.0154.76
4.4.20.0060.0234.84
4.4.10.0050.0184.85
4.4.00.0030.0354.76
4.3.110.0060.0194.67
4.3.100.0030.0144.66
4.3.90.0010.0164.63
4.3.80.0040.0234.58
4.3.70.0010.0224.63
4.3.60.0040.0184.63
4.3.50.0040.0174.63
4.3.40.0020.0374.54
4.3.30.0020.0163.30
4.3.20.0010.0173.27
4.3.10.0010.0173.24
4.3.00.0030.01733.62

preferences:
42.77 ms | 400 KiB | 5 Q