3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text= "#h #gg #مصر"; $get_hash = preg_match_all("/(^|\s)#(\w*[a-zA-Z-أ-إ-آ-ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-لا-لا-لآ-لأ-لإ-ى-ي-ئ-ة-ء-ؤ_]+\w*)/", $text, $matches); $array_hash = implode("",$matches[0]).""; $hash = str_replace('#', ', ', $array_hash); echo "hash (".$hash.")<br />"; echo $text;

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.0070.01316.75
8.3.60.0070.01416.75
8.3.50.0150.00322.05
8.3.40.0100.01018.92
8.3.30.0110.00319.07
8.3.20.0050.00220.20
8.3.10.0080.00023.72
8.3.00.0000.00820.76
8.2.190.0060.00916.63
8.2.180.0120.00316.75
8.2.170.0110.00422.96
8.2.160.0100.01020.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00920.79
8.2.110.0060.00322.28
8.2.100.0080.00418.16
8.2.90.0050.00319.20
8.2.80.0040.00418.03
8.2.70.0060.00317.88
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0030.00818.14
8.2.30.0050.00318.03
8.2.20.0070.00017.82
8.2.10.0060.00317.77
8.2.00.0070.00417.86
8.1.280.0140.00325.92
8.1.270.0040.00422.09
8.1.260.0000.00926.35
8.1.250.0000.00928.09
8.1.240.0030.00923.88
8.1.230.0070.00319.04
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0000.00817.41
8.1.180.0090.00018.10
8.1.170.0050.00318.68
8.1.160.0040.00421.98
8.1.150.0000.00818.70
8.1.140.0000.00717.57
8.1.130.0030.00517.77
8.1.120.0050.00317.66
8.1.110.0040.00417.55
8.1.100.0040.00417.61
8.1.90.0040.00417.57
8.1.80.0030.00317.50
8.1.70.0000.00717.52
8.1.60.0030.00617.78
8.1.50.0050.00517.69
8.1.40.0030.00517.64
8.1.30.0050.00317.81
8.1.20.0020.00517.84
8.1.10.0030.00517.73
8.1.00.0040.00417.64
8.0.300.0040.00418.77
8.0.290.0000.00817.18
8.0.280.0000.00718.38
8.0.270.0000.00717.21
8.0.260.0000.00716.92
8.0.250.0070.00017.15
8.0.240.0040.00417.12
8.0.230.0000.00717.11
8.0.220.0070.00017.08
8.0.210.0030.00316.95
8.0.200.0030.00317.12
8.0.190.0040.00417.11
8.0.180.0000.00716.92
8.0.170.0050.00217.01
8.0.160.0000.00817.14
8.0.150.0000.00716.99
8.0.140.0080.00017.03
8.0.130.0030.00313.46
8.0.120.0040.00416.93
8.0.110.0050.00317.01
8.0.100.0000.00716.82
8.0.90.0000.00716.99
8.0.80.0070.01016.97
8.0.70.0000.00917.10
8.0.60.0000.00816.98
8.0.50.0040.00416.90
8.0.30.0090.01117.21
8.0.20.0090.00917.40
8.0.10.0080.00017.16
8.0.00.0100.00716.94
7.4.330.0030.00315.00
7.4.320.0060.00016.55
7.4.300.0030.00316.66
7.4.290.0000.00716.63
7.4.280.0000.00716.70
7.4.270.0000.00716.70
7.4.260.0000.00716.66
7.4.250.0070.00016.57
7.4.240.0040.00416.69
7.4.230.0030.00316.86
7.4.220.0030.01416.66
7.4.210.0080.00816.66
7.4.200.0000.00716.63
7.4.190.0030.00316.56
7.4.160.0030.01316.62
7.4.150.0100.00717.40
7.4.140.0050.01417.86
7.4.130.0050.01216.71
7.4.120.0120.00516.85
7.4.110.0130.00416.57
7.4.100.0070.01016.79
7.4.90.0120.00616.57
7.4.80.0090.00916.86
7.4.70.0150.00316.69
7.4.60.0100.00716.62
7.4.50.0050.00316.63
7.4.40.0070.00422.77
7.4.30.0120.00316.77
7.4.00.0040.01215.04
7.3.330.0020.00313.41
7.3.320.0000.00513.42
7.3.310.0070.00016.57
7.3.300.0070.00016.43
7.3.290.0090.00616.44
7.3.280.0120.00416.46
7.3.270.0060.01217.40
7.3.260.0140.00316.43
7.3.250.0080.01416.63
7.3.240.0070.01016.78
7.3.230.0090.00916.61
7.3.210.0100.00716.55
7.3.200.0100.00519.39
7.3.190.0140.00316.73
7.3.180.0130.00316.58
7.3.170.0100.01316.65
7.3.160.0130.00316.52
7.3.120.0060.00915.18
7.2.330.0120.00616.91
7.2.320.0080.01216.72
7.2.310.0140.00916.85
7.2.300.0070.01016.63
7.2.290.0070.01716.86
7.2.60.0070.00717.11
7.1.200.0040.00815.81
7.1.70.0030.00717.46
7.1.60.0040.01519.22
7.1.50.0030.01716.91
7.1.00.0070.07322.30
7.0.200.0080.00316.90
7.0.140.0000.07722.16
7.0.70.0070.05321.78
7.0.60.0030.04321.78
7.0.50.0030.04722.16
7.0.40.0100.06720.07
7.0.30.0000.06320.18
7.0.20.0100.06720.04
7.0.10.0030.07720.13
7.0.00.0030.09020.08
5.6.280.0000.07721.10
5.6.220.0000.04320.70
5.6.210.0030.05720.46
5.6.200.0030.05721.03
5.6.190.0070.09021.07
5.6.180.0100.08020.95
5.6.170.0030.04321.01
5.6.160.0070.08321.10
5.6.150.0070.06021.08
5.6.140.0100.07721.10
5.6.130.0000.08021.09
5.6.120.0030.08021.01
5.6.110.0130.06721.04
5.6.100.0000.06321.01
5.6.90.0100.08321.02
5.6.80.0070.07720.55
5.6.70.0100.07320.32
5.6.60.0030.07720.47
5.6.50.0030.08020.48
5.6.40.0070.05020.41
5.6.30.0070.04720.43
5.6.20.0030.07320.30
5.6.10.0000.09020.41
5.6.00.0070.05720.28
5.5.360.0030.04020.40
5.5.350.0000.07320.42
5.5.340.0070.07320.91
5.5.330.0000.08720.91
5.5.320.0030.06020.85
5.5.310.0030.08720.63
5.5.300.0070.07720.89
5.5.290.0030.08320.89
5.5.280.0030.06020.87
5.5.270.0170.08020.82
5.5.260.0030.08720.79
5.5.250.0100.07720.71
5.5.240.0100.07720.26
5.5.230.0030.08720.17
5.5.220.0030.08020.16
5.5.210.0100.07720.20
5.5.200.0070.07020.07
5.5.190.0070.06020.17
5.5.180.0100.07320.22
5.5.160.0000.04320.14
5.5.150.0030.08020.12
5.5.140.0070.06320.07
5.5.130.0030.08020.20
5.5.120.0100.05020.24
5.5.110.0070.07719.96
5.5.100.0070.07720.07
5.5.90.0070.07720.09
5.5.80.0030.06320.14
5.5.70.0030.07319.93
5.5.60.0000.08020.02
5.5.50.0030.08019.95
5.5.40.0000.06720.00
5.5.30.0070.08020.05
5.5.20.0070.07720.05
5.5.10.0100.07320.11
5.5.00.0030.08319.96
5.4.450.0100.05319.47
5.4.440.0030.08719.37
5.4.430.0030.08319.38
5.4.420.0000.08319.22
5.4.410.0030.06719.16
5.4.400.0130.06718.90
5.4.390.0100.07018.79
5.4.380.0100.07319.07
5.4.370.0070.07318.96
5.4.360.0000.08019.12
5.4.350.0070.07718.90
5.4.340.0000.07719.04
5.4.320.0100.08019.07
5.4.310.0070.07719.12
5.4.300.0030.07319.02
5.4.290.0070.07318.99
5.4.280.0100.06719.04
5.4.270.0030.07319.11
5.4.260.0030.08019.07
5.4.250.0000.08319.22
5.4.240.0000.07319.04
5.4.230.0070.07719.05
5.4.220.0100.07719.07
5.4.210.0030.08019.06
5.4.200.0030.08019.04
5.4.190.0030.07718.94
5.4.180.0000.08018.77
5.4.170.0130.06718.89
5.4.160.0000.08018.76
5.4.150.0030.07718.95
5.4.140.0100.06716.29
5.4.130.0000.06316.26
5.4.120.0070.07016.38
5.4.110.0070.06716.42
5.4.100.0100.06716.41
5.4.90.0070.07016.45
5.4.80.0030.07316.25
5.4.70.0030.07016.29
5.4.60.0100.06316.19
5.4.50.0070.06716.38
5.4.40.0000.07316.47
5.4.30.0100.06716.33
5.4.20.0030.07316.20
5.4.10.0070.07016.18
5.4.00.0030.05015.73
5.3.290.0070.05714.48
5.3.280.0030.05714.55
5.3.270.0030.05714.55
5.3.260.0000.07714.54
5.3.250.0070.07014.58
5.3.240.0000.07714.56
5.3.230.0030.07314.54
5.3.220.0070.07314.45
5.3.210.0000.05314.50
5.3.200.0030.06014.48
5.3.190.0130.06314.56
5.3.180.0100.07314.39
5.3.170.0100.07314.47
5.3.160.0030.06714.50
5.3.150.0070.07714.50
5.3.140.0030.07714.41
5.3.130.0030.07314.36
5.3.120.0030.06714.54
5.3.110.0030.06714.40
5.3.100.0070.04313.98
5.3.90.0030.06014.00
5.3.80.0030.05713.94
5.3.70.0030.07314.02
5.3.60.0070.05713.96
5.3.50.0030.06013.93
5.3.40.0030.07013.70
5.3.30.0100.06713.76
5.3.20.0030.06713.63
5.3.10.0030.07713.43
5.3.00.0100.06013.57
5.2.170.0100.05713.17
5.2.160.0100.05013.17
5.2.150.0000.06013.17
5.2.140.0030.06313.17
5.2.130.0030.04013.17
5.2.120.0000.06013.17
5.2.110.0000.06313.17
5.2.100.0070.05713.17
5.2.90.0030.06013.17
5.2.80.0070.06013.17
5.2.70.0030.05313.17
5.2.60.0030.06713.17
5.2.50.0030.04713.17
5.2.40.0030.06013.17
5.2.30.0030.06313.17
5.2.20.0070.06013.17
5.2.10.0030.06313.17
5.2.00.0000.06313.17
5.1.60.0030.05313.17
5.1.50.0000.04013.17
5.1.40.0000.02313.17
5.1.30.0000.03013.17
5.1.20.0000.04013.17
5.1.10.0030.05313.17
5.1.00.0030.04313.17
5.0.50.0030.04713.17
5.0.40.0030.04313.17
5.0.30.0030.06713.17
5.0.20.0000.02713.17
5.0.10.0000.03313.17
5.0.00.0000.03313.17
4.4.90.0000.03713.17
4.4.80.0030.03013.17
4.4.70.0000.03713.17
4.4.60.0000.03713.17
4.4.50.0100.03013.17
4.4.40.0000.06013.17
4.4.30.0000.01713.17
4.4.20.0000.03713.17
4.4.10.0000.02713.17
4.4.00.0000.04713.17
4.3.110.0030.03713.17
4.3.100.0000.04013.17
4.3.90.0000.02713.17
4.3.80.0030.02713.17
4.3.70.0030.03313.17
4.3.60.0030.02313.17
4.3.50.0070.02013.17
4.3.40.0000.04713.17
4.3.30.0000.02313.17
4.3.20.0000.02313.17
4.3.10.0030.02713.17
4.3.00.0030.02313.17

preferences:
27.13 ms | 401 KiB | 5 Q