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_ÆæßÉ!"#$%&amp;\'()*+,\-./:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]|]+'; $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.0110.00716.75
8.3.50.0090.00616.36
8.3.40.0040.01118.54
8.3.30.0080.00818.76
8.3.20.0050.00320.36
8.3.10.0030.00621.63
8.3.00.0040.00419.38
8.2.180.0090.01218.26
8.2.170.0140.00422.96
8.2.160.0100.00320.27
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00021.07
8.2.120.0040.00426.35
8.2.110.0090.00021.12
8.2.100.0080.00318.21
8.2.90.0030.00619.22
8.2.80.0000.00818.04
8.2.70.0040.00417.50
8.2.60.0030.00618.05
8.2.50.0090.00018.10
8.2.40.0000.00820.54
8.2.30.0000.00720.90
8.2.20.0040.00418.12
8.2.10.0040.00418.17
8.2.00.0030.00318.18
8.1.280.0250.00825.92
8.1.270.0040.00421.93
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0080.00023.83
8.1.230.0110.00019.22
8.1.220.0000.00817.75
8.1.210.0050.00518.77
8.1.200.0030.00617.35
8.1.190.0090.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00420.34
8.1.160.0040.00418.95
8.1.150.0030.00520.78
8.1.140.0020.00517.46
8.1.130.0030.00318.95
8.1.120.0040.00417.50
8.1.110.0000.00817.50
8.1.100.0040.00417.44
8.1.90.0000.00817.55
8.1.80.0040.00417.46
8.1.70.0070.00017.60
8.1.60.0000.00817.66
8.1.50.0040.00417.64
8.1.40.0020.00517.54
8.1.30.0000.00817.60
8.1.20.0000.00817.69
8.1.10.0060.00317.67
8.1.00.0090.00017.54
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0070.00018.36
8.0.270.0000.00717.25
8.0.260.0030.00316.96
8.0.250.0000.00617.02
8.0.240.0040.00417.09
8.0.230.0000.00917.02
8.0.220.0070.00016.92
8.0.210.0000.00717.03
8.0.200.0040.00417.02
8.0.190.0020.00517.11
8.0.180.0040.00417.04
8.0.170.0080.00017.00
8.0.160.0000.00716.88
8.0.150.0000.00716.88
8.0.140.0030.00316.99
8.0.130.0030.00313.51
8.0.120.0040.00416.98
8.0.110.0000.00716.98
8.0.100.0050.00316.88
8.0.90.0050.00216.87
8.0.80.0000.01516.95
8.0.70.0050.00317.00
8.0.60.0070.00017.00
8.0.50.0040.00416.85
8.0.30.0090.00717.05
8.0.20.0090.01117.40
8.0.10.0040.00416.94
8.0.00.0110.00816.70
7.4.330.0060.00015.55
7.4.320.0070.00016.71
7.4.300.0030.00316.71
7.4.290.0030.00916.66
7.4.280.0060.00316.68
7.4.270.0060.00016.64
7.4.260.0090.00016.64
7.4.250.0000.00816.67
7.4.240.0040.00416.61
7.4.230.0090.00016.62
7.4.220.0160.01016.64
7.4.210.0070.00716.57
7.4.200.0000.00816.65
7.4.160.0070.00916.46
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0120.01216.31
7.4.120.0090.00816.46
7.3.330.0000.00613.22
7.3.320.0030.00313.07
7.3.310.0060.00016.48
7.3.300.0060.00016.36
7.3.290.0080.00916.29
7.3.280.0080.00916.32
7.3.270.0110.00617.40
7.3.260.0110.00916.29
7.3.250.0090.00816.29
7.3.240.0100.00716.31
7.1.70.0140.00717.01
7.1.60.0360.01635.12

preferences:
52.98 ms | 400 KiB | 5 Q