3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'S1G5AB'; // given this $store = '5I6GAB'; // actually this $regex = str_replace(['S','5','G','6','1','I'], ['[S5]','[S5]','[G6]','[G6]','[I1]','[I1]'], $input);echo $regex;echo (0 < preg_match("/$regex/", $store) ? 'Match' : 'No match');

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.0130.00718.43
8.3.50.0100.00823.00
8.3.40.0120.00318.99
8.3.30.0100.00319.08
8.3.20.0050.00320.35
8.3.10.0000.00821.73
8.3.00.0030.00717.88
8.2.180.0120.00316.75
8.2.170.0140.00022.96
8.2.160.0070.00720.14
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.21
8.2.110.0030.00622.28
8.2.100.0060.00617.91
8.2.90.0050.00319.25
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00317.80
8.2.50.0030.00618.07
8.2.40.0070.00418.03
8.2.30.0030.00518.12
8.2.20.0000.00917.95
8.2.10.0060.00318.14
8.2.00.0040.00417.82
8.1.280.0030.01025.92
8.1.270.0090.00023.97
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00024.03
8.1.230.0040.00819.08
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0090.00917.13
8.1.190.0050.00317.36
8.1.180.0060.00318.10
8.1.170.0050.00318.69
8.1.160.0050.00221.96
8.1.150.0040.00418.81
8.1.140.0000.00717.50
8.1.130.0040.00417.95
8.1.120.0000.00817.58
8.1.110.0060.00317.52
8.1.100.0050.00217.50
8.1.90.0060.00317.59
8.1.80.0040.00417.55
8.1.70.0040.00417.48
8.1.60.0040.00417.55
8.1.50.0030.00617.56
8.1.40.0040.00417.56
8.1.30.0000.00817.75
8.1.20.0000.00717.64
8.1.10.0070.00017.68
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0030.00317.31
8.0.260.0000.00717.27
8.0.250.0070.00017.00
8.0.240.0060.00316.98
8.0.230.0030.00617.11
8.0.220.0070.00017.00
8.0.210.0070.00017.12
8.0.200.0030.00517.14
8.0.190.0040.00416.96
8.0.180.0000.00817.07
8.0.170.0030.00617.10
8.0.160.0060.00617.11
8.0.150.0070.00016.97
8.0.140.0000.00717.02
8.0.130.0050.00313.38
8.0.120.0040.00417.07
8.0.110.0000.00717.14
8.0.100.0000.00816.94
8.0.90.0070.00017.06
8.0.80.0060.01017.02
8.0.70.0040.00417.05
8.0.60.0040.00417.01
8.0.50.0000.00717.08
8.0.30.0140.00517.10
8.0.20.0140.00517.48
8.0.10.0000.00817.02
8.0.00.0090.01016.96
7.4.330.0000.00515.07
7.4.320.0030.00316.70
7.4.300.0040.00416.75
7.4.290.0030.00316.71
7.4.280.0040.00416.70
7.4.270.0030.00316.76
7.4.260.0000.00716.71
7.4.250.0000.00816.68
7.4.240.0050.00216.69
7.4.230.0040.00416.59
7.4.220.0100.00716.65
7.4.210.0000.01516.80
7.4.200.0040.00416.51
7.4.160.0040.01116.49
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0170.00516.57
7.4.120.0130.00516.63
7.4.110.0090.00816.63
7.4.100.0100.00616.67
7.4.90.0090.00916.69
7.4.80.0130.00619.39
7.4.70.0110.01116.81
7.4.60.0030.01316.86
7.4.50.0000.00416.71
7.4.40.0060.01116.55
7.4.30.0080.00816.79
7.4.00.0060.01215.16
7.3.330.0070.00013.22
7.3.320.0050.00013.31
7.3.310.0000.00716.63
7.3.300.0050.00216.45
7.3.290.0040.01016.44
7.3.280.0060.01116.47
7.3.270.0080.01217.40
7.3.260.0040.01416.42
7.3.250.0100.00716.57
7.3.240.0030.01416.66
7.3.230.0080.00816.44
7.3.210.0120.00916.46
7.3.200.0040.01519.39
7.3.190.0040.01316.70
7.3.180.0100.00616.62
7.3.170.0110.00816.76
7.3.160.0040.01116.55
7.3.120.0100.00915.22
7.3.110.0030.01414.82
7.3.100.0060.00814.84
7.3.90.0030.00814.96
7.3.80.0050.00715.04
7.3.70.0090.00314.87
7.3.60.0090.00714.89
7.3.50.0060.00614.72
7.3.40.0030.01115.02
7.3.30.0030.01114.95
7.3.20.0090.00516.86
7.3.10.0080.00316.73
7.3.00.0050.00716.63
7.2.330.0060.01216.80
7.2.320.0160.00616.80
7.2.310.0150.00716.81
7.2.300.0110.01116.70
7.2.290.0060.01116.67
7.2.250.0110.00915.13
7.2.240.0050.01515.18
7.2.230.0050.01215.15
7.2.220.0070.00715.02
7.2.210.0050.01015.20
7.2.200.0050.00615.14
7.2.190.0000.01514.95
7.2.180.0020.01215.14
7.2.170.0070.00815.24
7.2.60.0070.00717.03
7.2.00.0070.00319.72
7.1.330.0050.00915.87
7.1.320.0060.00915.79
7.1.310.0020.01316.06
7.1.300.0020.01016.02
7.1.290.0050.00715.85
7.1.280.0080.00315.86
7.1.270.0030.00915.96
7.1.260.0060.00715.90
7.1.200.0030.00616.07
7.1.100.0070.00718.06
7.1.70.0000.00917.05
7.1.60.0120.01219.40
7.1.50.0080.00817.11
7.1.00.0100.06722.38
7.0.200.0000.00716.83
7.0.140.0070.07021.95
7.0.60.0070.09020.07
7.0.50.0070.06017.79
7.0.40.0100.08320.42
7.0.30.0130.04720.11
7.0.20.0200.05720.11
7.0.10.0030.06720.19
7.0.00.0100.07320.02
5.6.210.0070.08320.61
5.6.200.0000.05718.21
5.6.190.0130.08320.77
5.6.180.0370.06020.67
5.6.170.0230.07320.51
5.6.160.0030.05020.49
5.6.150.0130.07018.11
5.6.140.0070.08318.11
5.6.130.0070.07718.18
5.6.120.0130.07721.14
5.6.110.0030.08021.00
5.6.100.0070.05321.11
5.6.90.0100.04021.00
5.6.80.0130.04020.50
5.5.350.3900.04020.29
5.5.340.0030.04017.91
5.5.330.0200.06020.19
5.5.320.0000.07720.32
5.5.310.0370.07320.24
5.5.300.0070.07717.98
5.5.290.0030.04018.02
5.5.280.0030.04020.98
5.5.270.0130.07720.73
5.5.260.0130.07720.68
5.5.250.0130.04720.58
5.5.240.0130.08020.07
5.4.450.4300.04019.21
5.4.440.3430.04719.41
5.4.430.3870.04019.41
5.4.420.3700.04019.11
5.4.410.3800.02719.41
5.4.400.4230.04018.81
5.4.390.3330.04019.09
5.4.380.3500.03719.13
5.4.370.3230.03719.10
5.4.360.3900.04719.09
5.4.350.3430.04319.05
5.4.340.2830.03319.09
5.4.320.3870.03719.12
5.4.310.3670.04019.13
5.4.300.3700.04019.08
5.4.290.4030.04319.08
5.4.280.4000.03719.06
5.4.270.3900.03719.14
5.4.260.3600.03719.08
5.4.250.3670.03719.17
5.4.240.3700.03719.06
5.4.230.3570.04318.78
5.4.220.3370.03719.09
5.4.210.1170.03319.08
5.4.200.0070.04019.08
5.4.190.4130.04019.04
5.4.180.3530.04719.21
5.4.170.3630.03718.92
5.4.160.3630.04019.21
5.4.150.4000.04318.91
5.4.140.4070.03016.41
5.4.130.3630.03716.30
5.4.120.4500.03716.54
5.4.110.1830.03316.06
5.4.100.0070.04016.21
5.4.90.0300.04016.38
5.4.80.4630.03316.41
5.4.70.4370.03716.39
5.4.60.4470.04316.21
5.4.50.4270.03716.05
5.4.40.4430.04016.20
5.4.30.4300.03316.36
5.4.20.3930.03716.44
5.4.10.3470.03316.31
5.4.00.3370.03715.70
5.3.290.3100.04014.52
5.3.280.3700.04014.44
5.3.270.3770.03714.65
5.3.260.3770.03714.70
5.3.250.3970.03014.44
5.3.240.4000.03714.52
5.3.230.4000.03314.44
5.3.220.4500.03714.45
5.3.210.4070.04014.51
5.3.200.0100.06714.43
5.3.190.3470.03014.62
5.3.180.4300.03314.41
5.3.170.4430.03714.41
5.3.160.4000.04014.43
5.3.150.4330.03714.66
5.3.140.4430.03314.40
5.3.130.4200.03314.47
5.3.120.3730.03714.38
5.3.110.3670.03714.48
5.3.100.3830.03313.88
5.3.90.3500.03713.96
5.3.80.3670.04014.06
5.3.70.3770.03313.99
5.3.60.3570.03013.96
5.3.50.3600.03313.88
5.3.40.3470.03713.89
5.3.30.3870.03014.00
5.3.20.3970.03313.46
5.3.10.3770.02713.50
5.3.00.3330.03713.47
5.2.170.2970.03310.98
5.2.160.3300.03310.98
5.2.150.3170.03011.00
5.2.140.3200.02711.23
5.2.130.3200.03011.11
5.2.120.3200.02310.93
5.2.110.3070.02710.96
5.2.100.3130.03311.04
5.2.90.2800.03011.01
5.2.80.3470.03711.01
5.2.70.3130.03011.03
5.2.60.3000.03310.90
5.2.50.2830.03311.06
5.2.40.2370.03710.88
5.2.30.2430.03010.81
5.2.20.2430.03010.79
5.2.10.2930.03010.84
5.2.00.2800.03310.76
5.1.60.2570.0239.91
5.1.50.2500.01710.00
5.1.40.2870.0279.84
5.1.30.2770.02710.41
5.1.20.3070.02710.27
5.1.10.3130.0279.98
5.1.00.3100.02710.00
5.0.50.1400.0238.44
5.0.40.1430.0208.52
5.0.30.1600.0378.16
5.0.20.1370.0208.31
5.0.10.1770.0178.25
5.0.00.1400.0308.15
4.4.90.1430.0105.84
4.4.80.1230.0135.80
4.4.70.1170.0175.86
4.4.60.1370.0175.88
4.4.50.1430.0135.87
4.4.40.1400.0305.82
4.4.30.1270.0175.88
4.4.20.1500.0135.88
4.4.10.1370.0175.87
4.4.00.1370.0275.82
4.3.110.1530.0135.76
4.3.100.1370.0175.74
4.3.90.1400.0175.72
4.3.80.1430.0205.76
4.3.70.1730.0175.74
4.3.60.1630.0135.75
4.3.50.1770.0135.74
4.3.40.1400.0235.76
4.3.30.1070.0205.45
4.3.20.0430.0205.45
4.3.10.0800.0175.45
4.3.00.0900.0205.45

preferences:
48.03 ms | 401 KiB | 5 Q