3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'S1G5AB'; // given this $store = '5I6GAB'; // actually this $chars = explode('', $input); var_dump($chars); $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.70.0110.00416.75
8.3.60.0140.00416.75
8.3.50.0070.00922.73
8.3.40.0110.00418.88
8.3.30.0070.00719.17
8.3.20.0040.00420.31
8.3.10.0080.00021.77
8.3.00.0070.00317.63
8.2.180.0070.00718.29
8.2.170.0070.00722.96
8.2.160.0130.00020.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0090.00020.96
8.2.110.0030.00620.47
8.2.100.0090.00317.84
8.2.90.0060.00319.04
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0000.00818.05
8.2.50.0000.00818.10
8.2.40.0000.00718.09
8.2.30.0090.00017.98
8.2.20.0040.00417.75
8.2.10.0030.00518.06
8.2.00.0030.00617.77
8.1.280.0150.00625.92
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.92
8.1.230.0030.00617.77
8.1.220.0030.00617.78
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.56
8.1.160.0070.00021.93
8.1.150.0070.00018.81
8.1.140.0000.00717.39
8.1.130.0030.00317.70
8.1.120.0080.00017.29
8.1.110.0000.00817.36
8.1.100.0040.00417.38
8.1.90.0070.00417.36
8.1.80.0040.00417.34
8.1.70.0030.00517.35
8.1.60.0030.00617.57
8.1.50.0070.00017.48
8.1.40.0040.00417.55
8.1.30.0040.00417.65
8.1.20.0080.00017.50
8.1.10.0040.00417.61
8.1.00.0000.00817.39
8.0.300.0040.00419.84
8.0.290.0040.00416.63
8.0.280.0000.00718.32
8.0.270.0040.00417.21
8.0.260.0040.00417.07
8.0.250.0030.00316.79
8.0.240.0000.00816.95
8.0.230.0030.00616.85
8.0.220.0030.00316.80
8.0.210.0000.00716.89
8.0.200.0060.00316.84
8.0.190.0000.00716.97
8.0.180.0040.00416.97
8.0.170.0000.00816.90
8.0.160.0000.01016.94
8.0.150.0030.00516.80
8.0.140.0000.00716.81
8.0.130.0000.00613.29
8.0.120.0000.00816.89
8.0.110.0000.00716.77
8.0.100.0000.00717.00
8.0.90.0080.00016.83
8.0.80.0070.01416.82
8.0.70.0000.00716.79
8.0.60.0040.00416.84
8.0.50.0050.00216.90
8.0.30.0150.00316.99
8.0.20.0110.00917.40
8.0.10.0040.00416.90
8.0.00.0090.01016.75
7.4.330.0000.00615.10
7.4.320.0030.00316.80
7.4.300.0030.00316.60
7.4.290.0000.00716.73
7.4.280.0030.00516.77
7.4.270.0030.00316.72
7.4.260.0000.00816.70
7.4.250.0040.00416.73
7.4.240.0030.00416.84
7.4.230.0030.00316.64
7.4.220.0040.01416.75
7.4.210.0160.00716.82
7.4.200.0070.00016.83
7.4.160.0060.00916.78
7.4.150.0110.00717.40
7.4.140.0140.00917.86
7.4.130.0110.00816.63
7.4.120.0050.01316.83
7.4.110.0160.00316.75
7.4.100.0120.00616.91
7.4.90.0170.00016.61
7.4.80.0030.01819.39
7.4.70.0080.01116.52
7.4.60.0070.01016.74
7.4.50.0000.00416.71
7.4.40.0060.01116.79
7.4.30.0040.01216.73
7.4.00.0030.01415.14
7.3.330.0040.00413.45
7.3.320.0050.00013.36
7.3.310.0070.00016.48
7.3.300.0030.00316.45
7.3.290.0090.00616.56
7.3.280.0080.00816.51
7.3.270.0100.01017.40
7.3.260.0050.01416.72
7.3.240.0120.00616.62
7.3.230.0100.00716.52
7.3.210.0070.01316.71
7.3.200.0100.00719.39
7.3.190.0040.01516.63
7.3.180.0160.00016.68
7.3.170.0120.01216.49
7.3.160.0090.00616.50
7.2.330.0100.00716.75
7.2.320.0070.01016.76
7.2.310.0100.01316.72
7.2.300.0110.01116.71
7.2.290.0030.01316.73
7.2.60.0090.00617.08
7.2.00.0030.00619.70
7.1.200.0070.00715.80
7.1.100.0060.00618.28
7.1.70.0000.00917.05
7.1.60.0070.01019.40
7.1.50.0100.01016.91
7.1.00.0070.07322.47
7.0.200.0030.01016.96
7.0.140.0100.06322.22
7.0.60.0030.04319.78
7.0.50.0100.08017.79
7.0.40.0170.07719.98
7.0.30.0530.07320.25
7.0.20.0470.06720.10
7.0.10.0270.05020.18
7.0.00.0030.06720.13
5.6.280.0000.07720.99
5.6.210.0030.04020.70
5.6.200.0130.08018.13
5.6.190.0070.04720.58
5.6.180.0270.07020.39
5.6.170.0070.05320.50
5.6.160.0030.05720.31
5.6.150.0100.07718.16
5.6.140.0100.04718.09
5.6.130.0100.07718.09
5.6.120.0030.04321.14
5.6.110.0100.08021.05
5.6.100.0070.05321.10
5.6.90.0000.08020.87
5.6.80.0030.08020.52
5.6.70.2500.03320.36
5.5.350.0170.07720.36
5.5.340.0070.08017.92
5.5.330.0030.04320.06
5.5.320.0230.04320.28
5.5.310.0200.08020.16
5.5.300.0070.06318.01
5.5.290.0170.07317.96
5.5.280.0030.07020.77
5.5.270.0000.05320.79
5.5.260.0030.08720.68
5.5.250.0030.04320.77
5.5.240.3600.03720.14
5.4.450.0430.04019.25
5.4.440.0270.03319.45
5.4.430.0230.04719.13
5.4.420.0330.04019.41
5.4.410.0200.04019.33
5.4.400.0200.04319.22
5.4.390.0270.04018.91
5.4.380.0400.04718.72
5.4.370.0500.04318.79
5.4.360.0330.05718.68
5.4.350.0470.06318.68
5.4.340.0270.05718.66
5.4.320.0090.04812.45
5.4.310.0090.04712.45
5.4.300.0070.03912.46
5.4.290.0070.04812.45
5.4.280.0050.04212.35
5.4.270.0050.04012.35
5.4.260.0070.03712.35
5.4.250.0040.04012.35
5.4.240.0060.03612.35
5.4.230.0040.03912.34
5.4.220.0040.03912.34
5.4.210.0050.03712.34
5.4.200.0080.03612.34
5.4.190.0070.04312.34
5.4.180.0130.04112.34
5.4.170.0110.03612.35
5.4.160.0080.04312.34
5.4.150.0070.04012.34
5.4.140.0030.04512.03
5.4.130.0070.04312.02
5.4.120.0030.04211.97
5.4.110.0040.03811.97
5.4.100.0060.03911.97
5.4.90.0090.03711.97
5.4.80.0090.04311.96
5.4.70.0050.04311.96
5.4.60.0080.03511.96
5.4.50.0090.03911.96
5.4.40.0090.04011.95
5.4.30.0110.03511.95
5.4.20.0090.03611.95
5.4.10.0080.03611.95
5.4.00.0070.04511.44
5.3.290.0070.04812.80
5.3.280.0060.05112.71
5.3.270.0090.05512.73
5.3.260.0130.04412.72
5.3.250.0100.04412.72
5.3.240.0090.04112.72
5.3.230.0080.03712.71
5.3.220.0090.04212.68
5.3.210.0060.04312.68
5.3.200.0100.04212.68
5.3.190.0070.03912.68
5.3.180.0100.03312.67
5.3.170.0090.04412.67
5.3.160.0080.03412.67
5.3.150.0100.04612.68
5.3.140.0070.03512.66
5.3.130.0060.03812.66
5.3.120.0060.03912.66
5.3.110.0080.03812.66
5.3.100.0060.03712.12
5.3.90.0060.03612.09
5.3.80.0080.03412.07
5.3.70.0060.03612.07
5.3.60.0070.03512.07
5.3.50.0060.03712.00
5.3.40.0050.03912.00
5.3.30.0070.03311.95
5.3.20.0060.03511.72
5.3.10.0060.03511.70
5.3.00.0060.03611.70
5.2.170.0070.0279.19
5.2.160.0070.0269.19
5.2.150.0050.0309.19
5.2.140.0020.0339.19
5.2.130.0090.0259.14
5.2.120.0080.0349.14
5.2.110.0060.0299.14
5.2.100.0050.0339.14
5.2.90.0070.0299.14
5.2.80.0070.0369.14
5.2.70.0060.0309.14
5.2.60.0090.0309.09
5.2.50.0060.0379.06
5.2.40.0040.0389.04
5.2.30.0030.0359.02
5.2.20.0060.0299.00
5.2.10.0070.0288.92
5.2.00.0070.0308.78
5.1.60.0060.0288.07
5.1.50.0070.0308.07
5.1.40.0040.0318.04
5.1.30.0090.0328.39
5.1.20.0040.0338.42
5.1.10.0060.0288.14
5.1.00.0040.0288.14
5.0.50.0030.0316.62
5.0.40.0020.0296.48
5.0.30.0020.0326.30
5.0.20.0080.0196.27
5.0.10.0050.0246.24
5.0.00.0030.0306.24
4.4.90.0030.0164.78
4.4.80.0030.0154.75
4.4.70.0050.0184.76
4.4.60.0050.0224.75
4.4.50.0040.0194.77
4.4.40.0070.0254.71
4.4.30.0030.0184.75
4.4.20.0030.0154.85
4.4.10.0050.0154.85
4.4.00.0040.0264.76
4.3.110.0050.0144.67
4.3.100.0020.0164.66
4.3.90.0050.0144.64
4.3.80.0050.0334.58
4.3.70.0020.0154.63
4.3.60.0040.0234.63
4.3.50.0060.0184.63
4.3.40.0030.0274.54
4.3.30.0040.0203.29
4.3.20.0050.0173.27
4.3.10.0000.0203.23
4.3.00.0030.01715.90

preferences:
48.65 ms | 401 KiB | 5 Q