3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TXT /some text/ TXT; $pattern = "/ั‚ะตัั‚"; $pattern = preg_quote($pattern, '/'); var_dump($pattern); $matches = array(); $match = preg_match_all("/" . $pattern . "/mi", $text, $matches); var_dump($match, $matches);

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.40.0140.00419.14
8.3.30.0140.00018.97
8.3.20.0040.00418.68
8.3.10.0080.00020.66
8.3.00.0000.00819.51
8.2.170.0090.00622.96
8.2.160.0070.00721.10
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00417.63
8.2.110.0060.00320.80
8.2.100.0070.00418.03
8.2.90.0030.00619.08
8.2.80.0030.00517.93
8.2.70.0040.00417.88
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0000.01018.07
8.2.20.0040.00417.70
8.2.10.0040.00417.95
8.2.00.0040.00417.77
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00320.74
8.1.230.0000.01121.03
8.1.220.0060.00317.75
8.1.210.0000.00818.95
8.1.200.0000.01017.38
8.1.190.0000.00717.51
8.1.180.0040.00418.10
8.1.170.0050.00318.89
8.1.160.0030.00518.83
8.1.150.0050.00318.71
8.1.140.0000.00817.66
8.1.130.0080.00017.80
8.1.120.0040.00417.50
8.1.110.0040.00417.60
8.1.100.0040.00417.63
8.1.90.0040.00417.50
8.1.80.0060.00317.50
8.1.70.0030.00517.48
8.1.60.0000.00917.68
8.1.50.0000.00817.66
8.1.40.0000.00817.64
8.1.30.0060.00317.64
8.1.20.0000.00817.79
8.1.10.0040.00417.55
8.1.00.0040.00417.66
8.0.300.0060.00319.98
8.0.290.0000.00816.73
8.0.280.0070.00018.52
8.0.270.0030.00317.30
8.0.260.0050.00317.04
8.0.250.0070.00017.20
8.0.240.0070.00017.06
8.0.230.0000.00717.04
8.0.220.0040.00417.03
8.0.210.0040.00417.07
8.0.200.0030.00317.04
8.0.190.0000.00717.16
8.0.180.0000.00717.10
8.0.170.0060.00317.11
8.0.160.0040.00416.94
8.0.150.0000.00716.94
8.0.140.0040.00417.07
8.0.130.0030.00313.59
8.0.120.0040.00417.10
8.0.110.0050.00217.13
8.0.100.0000.00816.96
8.0.90.0050.00217.08
8.0.80.0120.00617.14
8.0.70.0030.00517.13
8.0.60.0080.00016.96
8.0.50.0050.00216.86
8.0.30.0130.00817.27
8.0.20.0110.00817.26
8.0.10.0030.00516.94
8.0.00.0160.00616.92
7.4.330.0020.00213.13
7.4.320.0060.00016.75
7.4.300.0000.00716.56
7.4.290.0030.00316.71
7.4.280.0040.00416.82
7.4.270.0040.00416.69
7.4.260.0000.00613.39
7.4.250.0040.00416.63
7.4.240.0070.00016.66
7.4.230.0040.00416.53
7.4.220.0060.01216.79
7.4.210.0080.00816.69
7.4.200.0000.00716.56
7.4.190.0000.00816.61
7.4.160.0100.00716.66
7.4.150.0040.02216.66
7.4.140.0080.01016.66
7.4.130.0130.00716.63
7.4.120.0080.01316.68
7.4.110.0140.00616.66
7.4.100.0140.00616.89
7.4.90.0140.00316.46
7.4.80.0100.01016.50
7.4.70.0100.01116.73
7.4.60.0090.00916.68
7.4.50.0000.00816.61
7.4.40.0090.00316.75
7.4.30.0090.01216.75
7.4.00.0070.01015.17
7.3.330.0030.00313.40
7.3.320.0030.00313.38
7.3.310.0070.00016.45
7.3.300.0000.00716.55
7.3.290.0110.00316.51
7.3.280.0060.01016.49
7.3.270.0120.01216.64
7.3.260.0080.01116.74
7.3.250.0240.00916.60
7.3.240.0080.00816.63
7.3.230.0110.00616.46
7.3.210.0030.01316.41
7.3.200.0070.01419.39
7.3.190.0140.00616.64
7.3.180.0060.00916.78
7.3.170.0110.00616.58
7.3.160.0120.00416.49
7.3.120.0070.00715.23
7.2.330.0090.00916.82
7.2.320.0140.00316.75
7.2.310.0080.01616.68
7.2.300.0140.00316.56
7.2.290.0090.01316.79
7.2.00.0060.00819.71
7.1.100.0030.01017.94
7.1.70.0040.00417.36
7.1.60.0100.01019.40
7.1.50.0100.01317.21
7.1.00.0000.07322.32
7.0.200.0000.00716.67
7.0.140.0070.06322.01
7.0.120.0000.06321.96
7.0.60.0100.06319.83
7.0.50.0070.08017.88
7.0.40.0100.06720.00
7.0.30.0270.07720.18
7.0.20.0200.07320.22
7.0.10.0370.07020.20
7.0.00.0030.04320.18
5.6.280.0070.07021.09
5.6.210.0070.08020.69
5.6.200.0100.07318.13
5.6.190.0070.08720.39
5.6.180.0330.06720.48
5.6.170.0330.07720.41
5.6.160.0130.07320.50
5.6.150.0070.06318.16
5.6.140.0070.04718.21
5.6.130.0100.06718.21
5.6.120.0070.04321.04
5.6.110.0130.08321.09
5.6.100.0030.08721.04
5.6.90.0030.04320.98
5.6.80.0070.06320.52
5.6.70.3800.04020.27
5.5.350.0200.08020.46
5.5.340.0070.08018.02
5.5.330.0100.08020.20
5.5.320.0270.04320.41
5.5.310.0400.08020.27
5.5.300.0100.07317.92
5.5.290.0170.07717.96
5.5.280.0100.08020.89
5.5.270.0000.04720.72
5.5.260.0100.04720.77
5.5.250.0130.08320.58
5.5.240.0070.08320.36
5.4.450.0370.07319.38
5.4.440.4070.04319.40
5.4.430.0170.07019.52
5.4.420.0070.05719.15
5.4.410.0130.05719.57
5.4.400.0100.05018.86
5.4.390.0000.06319.05
5.4.380.0330.05718.61
5.4.370.0100.04018.70
5.4.360.0170.03318.52
5.4.350.0140.03711.97
5.4.340.0060.04211.97
5.4.320.0050.04012.45
5.4.310.0070.04512.45
5.4.300.0080.04312.45
5.4.290.0090.04412.45
5.4.280.0080.04412.34
5.4.270.0080.04012.34
5.4.260.0080.04212.35
5.4.250.0090.04912.35
5.4.240.0080.04712.34
5.4.230.0080.05112.34
5.4.220.0100.04412.34
5.4.210.0070.04212.34
5.4.200.0080.04612.34
5.4.190.0090.04512.33
5.4.180.0090.04612.33
5.4.170.0100.05212.34
5.4.160.0090.04612.34
5.4.150.0100.05412.34
5.4.140.0090.05812.02
5.4.130.0110.04212.01
5.4.120.0090.04411.97
5.4.110.0090.04911.96
5.4.100.0100.04511.96
5.4.90.0100.04711.97
5.4.80.0090.05111.96
5.4.70.0070.04411.96
5.4.60.0120.03711.96
5.4.50.0090.04611.96
5.4.40.0070.04111.95
5.4.30.0140.04811.95
5.4.20.0080.05011.95
5.4.10.0080.04511.95
5.4.00.0090.05811.43
5.3.290.0080.04212.80
5.3.280.0140.07112.71
5.3.270.0110.06312.72
5.3.260.0120.05912.72
5.3.250.0090.05012.72
5.3.240.0090.05612.72
5.3.230.0120.04612.71
5.3.220.0070.05212.68
5.3.210.0080.05712.68
5.3.200.0070.05212.68
5.3.190.0090.04912.68
5.3.180.0100.04812.67
5.3.170.0080.04812.67
5.3.160.0070.04812.67
5.3.150.0070.05112.67
5.3.140.0060.04712.66
5.3.130.0080.04712.66
5.3.120.0100.04312.66
5.3.110.0070.04812.66
5.3.100.0090.04212.11
5.3.90.0100.04312.08
5.3.80.0070.04212.07
5.3.70.0090.04112.08
5.3.60.0080.04212.06
5.3.50.0080.04312.00
5.3.40.0090.04112.00
5.3.30.0100.03711.95

preferences:
42.82 ms | 400 KiB | 5 Q