3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '/[^A-Za-z0-9 \r\n@£$¥èéùìòÇØøÅå\x\{0394\}\x\{03A6\}\x\{0393\}\x\{039B\}\x\{03A9\}\x\{03A0\}\x\{03A8\}\x\{03A3\}\x\{0398\}\x\{039E\}ÆæßÉ!"#$%&amp;\'()*+,\-.\/:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]|\x\{20AC\}]+/g'; $data = 'asdf‘‼asdf'; $tmp = []; $result = mb_ereg($x,$data,$tmp); var_dump($tmp); /* $result = preg_match_all($x,$data,$tmp); var_dump($tmp); $z = $tmp[0][1]; $y = strpos($data,$z); $q = substr($data,$y,3); var_dump($q); */

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.0120.00618.68
8.3.50.0120.00316.58
8.3.40.0090.00618.79
8.3.30.0130.00318.59
8.3.20.0080.00020.44
8.3.10.0040.00421.73
8.3.00.0040.00419.25
8.2.180.0120.00918.41
8.2.170.0100.00722.96
8.2.160.0030.01020.46
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00821.24
8.2.120.0090.00026.35
8.2.110.0000.01020.86
8.2.100.0090.00318.21
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0000.00917.75
8.2.60.0040.00417.88
8.2.50.0040.00418.10
8.2.40.0080.00020.78
8.2.30.0070.00020.90
8.2.20.0070.00018.05
8.2.10.0060.00318.11
8.2.00.0000.00718.10
8.1.280.0130.00725.92
8.1.270.0040.00421.98
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.83
8.1.230.0040.00819.28
8.1.220.0050.00317.79
8.1.210.0030.00618.77
8.1.200.0060.00317.13
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0000.00820.43
8.1.160.0070.00019.00
8.1.150.0000.00820.77
8.1.140.0000.00719.53
8.1.130.0030.00318.85
8.1.120.0040.00417.53
8.1.110.0070.00017.44
8.1.100.0040.00417.50
8.1.90.0040.00417.45
8.1.80.0030.00317.52
8.1.70.0080.00017.57
8.1.60.0000.00817.66
8.1.50.0050.00317.55
8.1.40.0070.00017.52
8.1.30.0060.00317.73
8.1.20.0030.00517.75
8.1.10.0080.00017.65
8.1.00.0050.00317.58
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0050.00318.50
8.0.270.0000.00717.23
8.0.260.0000.00716.93
8.0.250.0030.00317.10
8.0.240.0040.00417.13
8.0.230.0030.00717.08
8.0.220.0030.00317.04
8.0.210.0040.00317.04
8.0.200.0000.00717.09
8.0.190.0040.00417.07
8.0.180.0040.00417.07
8.0.170.0030.00317.00
8.0.160.0040.00417.06
8.0.150.0040.00417.02
8.0.140.0040.00417.00
8.0.130.0060.00013.45
8.0.120.0030.00616.93
8.0.110.0030.00516.96
8.0.100.0000.00717.14
8.0.90.0000.00716.82
8.0.80.0130.00317.03
8.0.70.0070.00016.82
8.0.60.0000.00816.80
8.0.50.0040.00416.82
8.0.30.0040.01417.06
8.0.20.0110.00817.40
8.0.10.0000.00716.88
8.0.00.0100.00716.64
7.4.330.0030.00315.55
7.4.320.0030.00316.46
7.4.300.0000.00616.59
7.4.290.0000.00816.69
7.4.280.0000.00816.63
7.4.270.0030.00316.58
7.4.260.0030.00316.68
7.4.250.0040.00416.43
7.4.240.0040.00416.58
7.4.230.0000.00716.73
7.4.220.0120.00616.50
7.4.210.0130.00716.76
7.4.200.0030.00316.60
7.4.160.0030.01216.53
7.4.150.0150.00317.40
7.4.140.0110.01017.86
7.4.130.0230.00316.64
7.4.120.0160.00316.55
7.3.330.0000.00613.07
7.3.320.0030.00313.07
7.3.310.0020.00516.13
7.3.300.0030.00316.34
7.3.290.0120.00416.30
7.3.280.0060.01016.31
7.3.270.0100.00717.40
7.3.260.0050.01216.25
7.3.250.0110.00616.31
7.3.240.0060.01516.33
7.1.70.0080.01217.05

preferences:
36.8 ms | 401 KiB | 5 Q