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\}]+/'; mb_internal_encoding('UTF-8'); mb_regex_encoding('UTF-8'); $x = '[^A-Za-z0-9 \r\n@£$¥èéùìòÇØøÅå\u0394_\u03A6\u0393\u039B\u03A9\u03A0\u03A8\u03A3\u0398\u039EÆæßÉ!"#$%&amp;\'()*+,\-./:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]|\u20AC]+'; $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.0130.01016.75
8.3.50.0000.01416.29
8.3.40.0070.00718.67
8.3.30.0100.00718.66
8.3.20.0080.00020.54
8.3.10.0080.00022.02
8.3.00.0060.00319.25
8.2.180.0180.00018.54
8.2.170.0140.00722.96
8.2.160.0070.00720.38
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0060.00321.18
8.2.120.0040.00426.35
8.2.110.0030.00621.17
8.2.100.0000.01118.16
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0040.00420.58
8.2.30.0040.00421.01
8.2.20.0070.00018.11
8.2.10.0040.00418.00
8.2.00.0000.00718.11
8.1.280.0110.00325.92
8.1.270.0000.00722.17
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.88
8.1.230.0120.00019.04
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0110.00017.35
8.1.190.0060.00317.36
8.1.180.0070.00018.10
8.1.170.0040.00420.36
8.1.160.0080.00019.14
8.1.150.0040.00420.78
8.1.140.0050.00219.56
8.1.130.0000.00719.06
8.1.120.0090.00017.45
8.1.110.0040.00417.50
8.1.100.0070.00017.52
8.1.90.0060.00317.48
8.1.80.0000.00817.43
8.1.70.0000.00717.52
8.1.60.0040.00417.49
8.1.50.0050.00317.49
8.1.40.0040.00417.56
8.1.30.0030.00617.75
8.1.20.0030.00517.64
8.1.10.0040.00417.59
8.1.00.0000.00817.51
8.0.300.0010.00918.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0000.00717.28
8.0.260.0030.00316.96
8.0.250.0070.00017.05
8.0.240.0030.00317.06
8.0.230.0040.00717.00
8.0.220.0000.00717.08
8.0.210.0000.00716.98
8.0.200.0070.00017.04
8.0.190.0040.00417.03
8.0.180.0040.00417.03
8.0.170.0000.00717.05
8.0.160.0030.00316.94
8.0.150.0000.00717.04
8.0.140.0070.00016.99
8.0.130.0030.00313.49
8.0.120.0080.00016.99
8.0.110.0080.00016.92
8.0.100.0000.00716.98
8.0.90.0000.00716.90
8.0.80.0090.01216.99
8.0.70.0040.00417.04
8.0.60.0080.00017.05
8.0.50.0070.00016.96
8.0.30.0080.00917.15
8.0.20.0130.00617.40
8.0.10.0000.00817.00
8.0.00.0070.01016.93
7.4.330.0020.00215.55
7.4.320.0000.00616.48
7.4.300.0030.00316.48
7.4.290.0100.00016.48
7.4.280.0070.00016.52
7.4.270.0030.00316.55
7.4.260.0060.00616.59
7.4.250.0030.00616.59
7.4.240.0000.00716.64
7.4.230.0030.00616.45
7.4.220.0090.00916.75
7.4.210.0070.00716.71
7.4.200.0030.00316.56
7.4.160.0100.00916.55
7.4.150.0070.01117.40
7.4.140.0120.00917.86
7.4.130.0090.00916.56
7.4.120.0070.01416.53
7.3.330.0050.00013.01
7.3.320.0050.00013.25
7.3.310.0030.00316.39
7.3.300.0030.00316.34
7.3.290.0070.00816.28
7.3.280.0060.01116.33
7.3.270.0130.00517.40
7.3.260.0070.01016.27
7.3.250.0110.00816.28
7.3.240.0130.00716.31
7.1.60.0170.01434.75

preferences:
49.9 ms | 401 KiB | 5 Q