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\}]+/'; $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.0090.00918.68
8.3.50.0090.00616.59
8.3.40.0040.01118.50
8.3.30.0110.00418.72
8.3.20.0050.00320.46
8.3.10.0070.00021.76
8.3.00.0040.00419.25
8.2.180.0100.00718.34
8.2.170.0100.00722.96
8.2.160.0110.00320.34
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00821.02
8.2.120.0080.00026.35
8.2.110.0100.00021.12
8.2.100.0040.00718.21
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.91
8.2.50.0000.00918.10
8.2.40.0000.00720.58
8.2.30.0000.00720.93
8.2.20.0000.00717.95
8.2.10.0080.00018.00
8.2.00.0070.00018.18
8.1.280.0140.00325.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00523.82
8.1.230.0100.00019.20
8.1.220.0070.00017.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00820.44
8.1.160.0040.00418.94
8.1.150.0030.00620.80
8.1.140.0000.00719.64
8.1.130.0000.00718.95
8.1.120.0040.00417.54
8.1.110.0000.00717.55
8.1.100.0040.00417.57
8.1.90.0070.00017.56
8.1.80.0040.00417.50
8.1.70.0000.00717.52
8.1.60.0030.00617.56
8.1.50.0000.00817.54
8.1.40.0080.00017.62
8.1.30.0020.00517.78
8.1.20.0000.00817.75
8.1.10.0080.00017.54
8.1.00.0030.00517.60
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0030.00318.49
8.0.270.0030.00317.36
8.0.260.0000.00716.93
8.0.250.0030.00317.02
8.0.240.0040.00417.06
8.0.230.0050.00417.10
8.0.220.0040.00417.04
8.0.210.0000.00717.00
8.0.200.0000.00616.97
8.0.190.0040.00417.12
8.0.180.0070.00017.05
8.0.170.0030.00317.02
8.0.160.0070.00017.02
8.0.150.0050.00216.97
8.0.140.0000.00716.99
8.0.130.0060.00013.46
8.0.120.0000.00817.09
8.0.110.0060.00316.87
8.0.100.0000.00716.89
8.0.90.0080.00016.82
8.0.80.0170.00017.04
8.0.70.0080.00017.13
8.0.60.0000.00717.10
8.0.50.0000.00716.97
8.0.30.0080.00816.95
8.0.20.0120.01317.40
8.0.10.0050.00217.11
8.0.00.0000.01916.71
7.4.330.0000.00515.55
7.4.320.0030.00316.62
7.4.300.0030.00316.72
7.4.290.0060.00316.70
7.4.280.0030.00616.63
7.4.270.0000.00716.55
7.4.260.0050.00516.71
7.4.250.0040.00416.52
7.4.240.0040.00416.56
7.4.230.0000.00816.45
7.4.220.0040.01516.67
7.4.210.0030.01216.67
7.4.200.0000.00716.73
7.4.160.0070.01016.53
7.4.150.0080.01117.40
7.4.140.0100.00817.86
7.4.130.0090.00916.64
7.4.120.0100.01116.56
7.3.330.0000.00513.16
7.3.320.0020.00213.22
7.3.310.0030.00316.32
7.3.300.0030.00316.32
7.3.290.0060.00916.31
7.3.280.0090.00816.32
7.3.270.0030.01317.40
7.3.260.0120.00516.54
7.3.250.0140.00616.34
7.3.240.0100.00716.44
7.1.70.0090.01216.98

preferences:
26.5 ms | 401 KiB | 5 Q