3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'S1G5AB'; // given this $store = '5I6GAB'; // actually this $regex = str_replace(['S','G','I'], ['[S5]', '[G6]', '[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.0090.00618.43
8.3.60.0120.00918.43
8.3.50.0080.01322.90
8.3.40.0120.00318.96
8.3.30.0070.00718.94
8.3.20.0070.00420.34
8.3.10.0070.00021.85
8.3.00.0030.00717.88
8.2.180.0120.00616.75
8.2.170.0110.00322.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00026.16
8.2.120.0030.00521.09
8.2.110.0060.00320.51
8.2.100.0080.00418.03
8.2.90.0030.00519.34
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00718.04
8.2.50.0000.01218.07
8.2.40.0090.00218.05
8.2.30.0030.00618.16
8.2.20.0040.00417.95
8.2.10.0040.00418.16
8.2.00.0040.00417.93
8.1.280.0040.01125.92
8.1.270.0080.00023.86
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.80
8.1.230.0120.00017.64
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0030.00617.48
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0000.00818.64
8.1.160.0000.00721.96
8.1.150.0070.00018.81
8.1.140.0040.00417.57
8.1.130.0030.00317.97
8.1.120.0000.00717.58
8.1.110.0030.00517.52
8.1.100.0050.00217.54
8.1.90.0000.01017.59
8.1.80.0020.00517.42
8.1.70.0000.00717.54
8.1.60.0030.00617.62
8.1.50.0050.00317.59
8.1.40.0040.00417.62
8.1.30.0000.00917.77
8.1.20.0030.00517.59
8.1.10.0050.00217.61
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.49
8.0.270.0000.00717.25
8.0.260.0030.00317.27
8.0.250.0050.00217.16
8.0.240.0060.00317.07
8.0.230.0000.00717.04
8.0.220.0030.00317.07
8.0.210.0000.00717.04
8.0.200.0000.01017.13
8.0.190.0040.00416.95
8.0.180.0040.00416.92
8.0.170.0030.00617.05
8.0.160.0060.00316.97
8.0.150.0000.00817.00
8.0.140.0040.00416.90
8.0.130.0040.00413.40
8.0.120.0000.00817.05
8.0.110.0000.00817.12
8.0.100.0000.00716.98
8.0.90.0000.00717.08
8.0.80.0030.01817.02
8.0.70.0050.00316.98
8.0.60.0030.00517.13
8.0.50.0000.00816.98
8.0.30.0080.01117.13
8.0.20.0100.01017.40
8.0.10.0000.00717.27
8.0.00.0130.00616.98
7.4.330.0050.00015.14
7.4.320.0040.00416.63
7.4.300.0000.00716.80
7.4.290.0030.00316.59
7.4.280.0050.00216.72
7.4.270.0030.00316.81
7.4.260.0070.00016.68
7.4.250.0040.00416.82
7.4.240.0020.00516.62
7.4.230.0040.00416.80
7.4.220.0030.01616.73
7.4.210.0070.01016.74
7.4.200.0000.00716.90
7.4.160.0100.00516.56
7.4.150.0090.00917.40
7.4.140.0070.01317.86
7.4.130.0080.01116.80
7.4.120.0060.01116.69
7.4.110.0120.00616.62
7.4.100.0120.00616.57
7.4.90.0070.01016.78
7.4.80.0120.00919.39
7.4.70.0130.00916.66
7.4.60.0050.01116.61
7.4.50.0020.00216.38
7.4.40.0070.01016.65
7.4.30.0030.01416.80
7.4.00.0110.00615.14
7.3.330.0040.00413.30
7.3.320.0030.00313.18
7.3.310.0000.00716.41
7.3.300.0050.00316.42
7.3.290.0130.00716.45
7.3.280.0090.00716.47
7.3.270.0170.00717.40
7.3.260.0160.00816.50
7.3.240.0100.00716.77
7.3.230.0120.00416.72
7.3.210.0090.01516.36
7.3.200.0030.02019.39
7.3.190.0140.00416.69
7.3.180.0030.01216.48
7.3.170.0100.01316.45
7.3.160.0100.00616.43
7.3.120.0070.01114.75
7.3.110.0060.01214.88
7.3.100.0100.00615.16
7.3.90.0150.00014.86
7.3.80.0040.01214.93
7.3.70.0070.00714.98
7.3.60.0120.00014.98
7.3.50.0110.00315.08
7.3.40.0060.00614.79
7.3.30.0060.00615.01
7.3.20.0100.00316.80
7.3.10.0030.01016.52
7.3.00.0090.00616.77
7.2.330.0100.00716.66
7.2.320.0170.00616.58
7.2.310.0100.00716.65
7.2.300.0070.01716.57
7.2.290.0070.01016.66
7.2.250.0040.01515.32
7.2.240.0070.01015.27
7.2.230.0030.01014.92
7.2.220.0130.00315.18
7.2.210.0030.00715.05
7.2.200.0040.01115.27
7.2.190.0090.00615.14
7.2.180.0060.00315.12
7.2.170.0060.00615.07
7.2.110.0260.00016.79
7.2.100.0260.00416.30
7.2.90.0180.00816.82
7.2.80.0090.01016.55
7.2.70.0170.00916.94
7.2.60.0220.00917.12
7.2.50.0140.01917.06
7.2.40.0250.00816.78
7.2.30.0230.00617.08
7.2.20.0150.00517.01
7.2.10.0290.00716.90
7.2.00.0130.00718.06
7.1.330.0050.00515.80
7.1.320.0060.00615.85
7.1.310.0100.00015.80
7.1.300.0060.00916.07
7.1.290.0030.00916.17
7.1.280.0090.00616.07
7.1.270.0030.01415.91
7.1.260.0070.00315.89
7.1.230.0170.00915.66
7.1.220.0270.00315.68
7.1.210.0200.00815.74
7.1.200.0170.00316.02
7.1.190.0140.01815.95
7.1.180.0160.01216.04
7.1.170.0150.00315.83
7.1.160.0110.00815.57
7.1.150.0160.00615.85
7.1.140.0120.00915.93
7.1.130.0130.00615.95
7.1.120.0190.00716.05
7.1.110.0140.00615.87
7.1.100.0130.00316.98
7.1.90.0120.00816.03
7.1.80.0240.00315.88
7.1.70.0160.00416.78
7.1.60.0160.01417.75
7.1.50.0150.01316.59
7.1.40.0120.01415.99
7.1.30.0120.00916.24
7.1.20.0190.00716.20
7.1.10.0140.00915.91
7.1.00.0090.03919.22
7.0.310.0170.00715.55
7.0.300.0130.01815.45
7.0.290.0220.00715.48
7.0.280.0150.00515.44
7.0.270.0140.00715.42
7.0.260.0120.00915.57
7.0.250.0170.00015.49
7.0.240.0220.00415.55
7.0.230.0210.00715.79
7.0.220.0170.00315.73
7.0.210.0190.00615.45
7.0.200.0100.00716.36
7.0.190.0150.00315.39
7.0.180.0150.00815.46
7.0.170.0160.00615.75
7.0.160.0150.00815.43
7.0.150.0180.00315.66
7.0.140.0070.03818.81
7.0.130.0140.00315.33
7.0.120.0280.00715.43
7.0.110.0110.00415.57
7.0.100.0070.01115.69
7.0.90.0070.01215.71
7.0.80.0110.00515.43
7.0.70.0120.00415.43
7.0.60.0070.04517.79
7.0.50.0050.04016.75
7.0.40.0080.02716.84
7.0.30.0160.03316.82
7.0.20.0150.02316.96
7.0.10.0100.02716.86
7.0.00.0080.03617.04
5.6.380.0120.00414.27
5.6.370.0130.00914.04
5.6.360.0110.00914.30
5.6.350.0100.00514.43
5.6.340.0220.00414.63
5.6.330.0110.00513.97
5.6.320.0260.00414.58
5.6.310.0110.01114.70
5.6.300.0050.01114.50
5.6.290.0080.01114.39
5.6.280.0090.03917.60
5.6.270.0130.00814.61
5.6.260.0140.00714.58
5.6.250.0090.00914.30
5.6.240.0170.00314.46
5.6.230.0140.00414.38
5.6.220.0140.00414.39
5.6.210.0090.04217.70
5.6.200.0150.04016.25
5.6.190.0050.02817.67
5.6.180.0090.02917.62
5.6.170.0270.03117.65
5.6.160.0080.04417.36
5.6.150.0060.03716.37
5.6.140.0100.02316.30
5.6.130.0080.04316.22
5.6.120.0070.02717.70
5.6.110.0040.05017.69
5.6.100.0050.04717.76
5.6.90.0170.03217.80
5.6.80.0120.04217.42
5.6.70.1930.02217.27
5.6.60.0150.00214.06
5.6.50.0040.01114.26
5.6.40.0070.01014.60
5.6.30.0060.00914.38
5.6.20.0090.00614.36
5.6.10.0080.00714.27
5.6.00.0120.00614.42
5.5.380.0130.00312.79
5.5.370.0110.00312.79
5.5.360.0130.00012.79
5.5.350.0100.04216.54
5.5.340.0050.03515.36
5.5.330.0070.03316.59
5.5.320.2250.02316.49
5.5.310.0160.03016.54
5.5.300.0090.01715.35
5.5.290.0080.02415.33
5.5.280.0130.04016.78
5.5.270.0040.02516.82
5.5.260.0070.04516.84
5.5.250.0050.04316.67
5.5.240.0200.03516.57
5.5.230.0090.00612.79
5.5.220.0070.00612.79
5.5.210.0060.00612.79
5.5.200.0060.00612.79
5.5.190.0090.00012.79
5.5.180.0070.00612.79
5.5.170.0100.00714.38
5.5.160.0070.00412.79
5.5.150.0090.00312.79
5.5.140.0080.00512.79
5.5.130.0110.00412.79
5.5.120.0000.01212.79
5.5.110.0080.00312.79
5.5.100.0110.00412.79
5.5.90.0120.00312.79
5.5.80.0030.00912.79
5.5.70.0100.00012.79
5.5.60.0070.00712.79
5.5.50.0030.00612.79
5.5.40.0080.00312.79
5.5.30.0050.00512.79
5.5.20.0110.00312.79
5.5.10.0110.00012.79
5.5.00.0100.00312.79
5.4.450.0200.02716.17
5.4.440.0190.02516.11
5.4.430.0200.02616.11
5.4.420.0280.02315.94
5.4.410.0150.02816.10
5.4.400.0210.02115.96
5.4.390.0380.02515.94
5.4.380.0100.02815.74
5.4.370.0130.02515.74
5.4.360.0080.03015.73
5.4.350.0130.02515.68
5.4.340.0140.02715.68
5.4.330.0100.00012.79
5.4.320.0100.01812.62
5.4.310.0080.02412.62
5.4.300.0090.01812.62
5.4.290.0080.01912.62
5.4.280.0060.02112.57
5.4.270.0090.02012.57
5.4.260.0060.02512.57
5.4.250.0090.02212.56
5.4.240.0040.02612.57
5.4.230.0080.02112.56
5.4.220.0080.01812.56
5.4.210.0060.02212.56
5.4.200.0060.02212.56
5.4.190.0070.01912.56
5.4.180.0080.01812.56
5.4.170.0030.02312.57
5.4.160.0100.01912.56
5.4.150.0070.02112.56
5.4.140.0060.02412.41
5.4.130.0040.02112.40
5.4.120.0030.02412.38
5.4.110.0060.02012.38
5.4.100.0080.01812.38
5.4.90.0080.02012.38
5.4.80.0060.02012.38
5.4.70.0070.01812.37
5.4.60.0060.02012.37
5.4.50.0070.02012.37
5.4.40.0080.01912.37
5.4.30.0040.02212.37
5.4.20.0050.02512.37
5.4.10.0100.02012.37
5.4.00.0080.01812.11
5.3.290.0120.02412.80
5.3.280.0070.02212.75
5.3.270.0060.02812.76
5.3.260.0080.02112.76
5.3.250.0070.02412.76
5.3.240.0080.01912.76
5.3.230.0070.02312.75
5.3.220.0060.02012.74
5.3.210.0080.02412.74
5.3.200.0090.01912.73
5.3.190.0070.02112.73
5.3.180.0060.02112.73
5.3.170.0050.02012.73
5.3.160.0100.02012.73
5.3.150.0080.01912.73
5.3.140.0060.01912.72
5.3.130.0050.02212.72
5.3.120.0100.02012.72
5.3.110.0040.02112.72
5.3.100.0060.02312.45
5.3.90.0080.01912.44
5.3.80.0040.02312.43
5.3.70.0080.02012.43
5.3.60.0070.02012.43
5.3.50.0040.02412.40
5.3.40.0040.02412.40
5.3.30.0090.01812.37
5.3.20.0040.02412.26
5.3.10.0050.02212.24
5.3.00.0050.02212.24
5.2.170.0070.01610.98
5.2.160.0040.02010.99
5.2.150.0040.01910.98
5.2.140.0040.01810.98
5.2.130.0040.01710.96
5.2.120.0080.01610.96
5.2.110.0060.02010.97
5.2.100.0070.01710.97
5.2.90.0080.01610.96
5.2.80.0060.01810.96
5.2.70.0090.02110.97
5.2.60.0050.02310.94
5.2.50.0070.02010.93
5.2.40.0060.01710.91
5.2.30.0050.01710.90
5.2.20.0080.01410.89
5.2.10.0080.01410.86
5.2.00.0100.01810.79
5.1.60.0070.01410.43
5.1.50.0080.01110.42
5.1.40.0030.01810.42
5.1.30.0050.01810.59
5.1.20.0080.01310.60
5.1.10.0060.01410.46
5.1.00.0070.01510.46
5.0.50.0050.0149.71
5.0.40.0040.0139.64
5.0.30.0030.0179.54
5.0.20.0040.0119.53
5.0.10.0040.0139.52
5.0.00.0060.0219.51
4.4.90.0030.0118.79
4.4.80.0020.0148.77
4.4.70.0030.0108.77
4.4.60.0050.0128.77
4.4.50.0040.0098.78
4.4.40.0030.0148.75
4.4.30.0040.0078.77
4.4.20.0020.0148.81
4.4.10.0030.0128.82
4.4.00.0030.0148.77
4.3.110.0050.0118.73
4.3.100.0020.0128.73
4.3.90.0020.0128.71
4.3.80.0020.0148.69
4.3.70.0030.0108.71
4.3.60.0020.0128.71
4.3.50.0030.0118.71
4.3.40.0020.0158.66
4.3.30.0030.0148.04
4.3.20.0020.0148.03
4.3.10.0050.0138.01
4.3.00.0050.01014.34

preferences:
66.69 ms | 401 KiB | 5 Q