3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getStringsBetween($string, $start, $end) { $pattern = sprintf('/%s(.*?)%s/',preg_quote($start), '(?:' . preg_quote($end) . '|$)'); preg_match_all($pattern, $string, $matches); return $matches[1]; } $y = "@!$+$+$+#+ hsjsjenshsjsjsj#hshsjsj ndjdjjdjdn #sem"; $output = getStringsBetween($y, "#", " "); print_r($output);

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.00616.58
8.3.60.0090.00616.88
8.3.50.0030.01416.16
8.3.40.0080.01219.06
8.3.30.0090.00618.64
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.190.0070.01316.88
8.2.180.0170.00325.92
8.2.170.0160.00319.03
8.2.160.0000.01422.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00626.35
8.2.110.0040.00420.30
8.2.100.0090.00318.03
8.2.90.0040.00418.16
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0040.00419.33
8.2.30.0030.00619.25
8.2.20.0000.00818.28
8.2.10.0040.00421.25
8.2.00.0000.00819.39
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00022.46
8.1.230.0120.00022.67
8.1.220.0050.00317.74
8.1.210.0070.00318.91
8.1.200.0040.00417.47
8.1.190.0040.00417.48
8.1.180.0040.00418.85
8.1.170.0050.00318.64
8.1.160.0040.00419.00
8.1.150.0040.00418.89
8.1.140.0040.00418.98
8.1.130.0030.00520.06
8.1.120.0000.00817.68
8.1.110.0080.00017.59
8.1.100.0070.00017.61
8.1.90.0070.00017.61
8.1.80.0070.00017.58
8.1.70.0030.00317.64
8.1.60.0000.00817.75
8.1.50.0040.00417.68
8.1.40.0040.00417.75
8.1.30.0030.00617.89
8.1.20.0000.00917.79
8.1.10.0040.00417.68
8.1.00.0040.00417.67
8.0.300.0030.00520.02
8.0.290.0000.01116.88
8.0.280.0070.00018.55
8.0.270.0080.00017.04
8.0.260.0030.00318.48
8.0.250.0000.00717.02
8.0.240.0000.00617.07
8.0.230.0040.00417.03
8.0.220.0030.00717.09
8.0.210.0040.00417.07
8.0.200.0030.00317.11
8.0.190.0040.00417.14
8.0.180.0000.00916.97
8.0.170.0050.00316.91
8.0.160.0020.00516.95
8.0.150.0040.00416.96
8.0.140.0040.00416.91
8.0.130.0000.00713.53
8.0.120.0040.00417.01
8.0.110.0040.00416.88
8.0.100.0000.00717.13
8.0.90.0000.00916.93
8.0.80.0090.00917.04
8.0.70.0050.00217.06
8.0.60.0040.00416.86
8.0.50.0070.00016.77
8.0.30.0130.00517.24
8.0.20.0110.01017.25
8.0.10.0030.00517.08
8.0.00.0080.01216.74
7.4.330.0020.00415.55
7.4.320.0060.00016.70
7.4.300.0030.00316.84
7.4.290.0030.00316.63
7.4.280.0030.00416.71
7.4.270.0040.00416.86
7.4.260.0030.00313.50
7.4.250.0070.00016.70
7.4.240.0040.00316.86
7.4.230.0080.00016.75
7.4.220.0030.00316.69
7.4.210.0060.01016.79
7.4.200.0040.00416.57
7.4.130.0080.00916.59
7.4.120.0110.01216.69
7.4.110.0110.00716.88
7.4.100.0140.00716.82
7.4.90.0100.00716.62
7.4.80.0090.00919.39
7.4.70.0100.00716.47
7.4.60.0160.01516.57
7.4.50.0130.01316.37
7.4.40.0190.00516.59
7.4.30.0170.00316.68
7.4.20.0130.00916.52
7.4.10.0050.01316.45
7.4.00.0130.01516.32
7.3.330.0040.00416.54
7.3.320.0050.00213.28
7.3.310.0050.00216.50
7.3.300.0030.00316.46
7.3.290.0090.00716.37
7.3.260.0070.01116.66
7.3.240.0090.00816.59
7.3.230.0160.00016.46
7.3.210.0110.00716.30
7.3.200.0080.01416.88
7.3.190.0090.00616.61
7.3.180.0100.01416.44
7.3.170.0030.02116.61
7.3.160.0100.01216.50
7.3.150.0080.00816.39
7.3.140.0130.00916.39
7.3.130.0110.01116.62
7.3.120.0090.00916.62
7.3.110.0150.00316.25
7.3.100.0120.00616.51
7.3.90.0050.01616.71
7.3.80.0090.00916.61
7.3.70.0030.01316.53
7.3.60.0070.01516.63
7.3.50.0090.01216.63
7.3.40.0130.00616.47
7.3.30.0060.01216.43
7.3.20.0060.01816.52
7.3.10.0100.01016.57
7.3.00.0110.00916.57
7.2.330.0100.01016.85
7.2.320.0130.00616.68
7.2.310.0130.00616.81
7.2.300.0190.00916.63
7.2.290.0090.01316.93
7.2.280.0150.00916.60
7.2.270.0110.01216.61
7.2.260.0100.00716.75
7.2.250.0100.01016.81
7.2.240.0100.01216.77
7.2.230.0080.01216.53
7.2.220.0120.00616.73
7.2.210.0120.00716.61
7.2.200.0000.01716.98
7.2.190.0140.00416.74
7.2.180.0090.01216.68
7.2.170.0160.00816.66
7.2.160.0070.01016.76
7.2.150.0140.00516.76
7.2.140.0070.01417.02
7.2.130.0080.01316.81
7.2.120.0060.01816.66
7.2.110.0150.01216.68
7.2.100.0130.01016.87
7.2.90.0070.01416.72
7.2.80.0150.00916.52
7.2.70.0030.02116.53
7.2.60.0220.00716.56
7.2.50.0030.01916.75
7.2.40.0150.00716.68
7.2.30.0120.01116.63
7.2.20.0100.01516.80
7.2.10.0110.00716.84
7.2.00.0180.00916.75

preferences:
17.86 ms | 401 KiB | 5 Q