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 = preg_match_all($x,$data,$tmp); var_dump($tmp); $z = $tmp[0][1]; #$z = utf8_encode($z); #$z = iconv(mb_detect_encoding($z, mb_detect_order(), true), "UTF-8", $z); #var_dump(mb_detect_encoding($data)); $z = mb_convert_encoding($z,"UTF-16"); var_dump($z);

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.0150.00418.43
8.3.50.0040.01116.37
8.3.40.0060.00918.73
8.3.30.0060.00918.88
8.3.20.0040.00420.29
8.3.10.0080.00023.48
8.3.00.0080.00019.38
8.2.180.0070.01116.50
8.2.170.0120.00322.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00421.22
8.2.120.0050.00226.35
8.2.110.0090.00021.07
8.2.100.0030.00918.16
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0070.00417.88
8.2.60.0030.00617.93
8.2.50.0030.00518.16
8.2.40.0000.00920.42
8.2.30.0060.00321.10
8.2.20.0000.00818.05
8.2.10.0040.00418.05
8.2.00.0070.00018.13
8.1.280.0140.00025.92
8.1.270.0050.00322.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0040.00819.21
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00920.47
8.1.160.0000.00819.04
8.1.150.0040.00420.69
8.1.140.0020.00519.60
8.1.130.0070.00018.82
8.1.120.0000.00717.50
8.1.110.0040.00417.50
8.1.100.0040.00417.51
8.1.90.0000.00717.57
8.1.80.0000.00817.66
8.1.70.0000.00717.59
8.1.60.0000.00717.75
8.1.50.0030.00617.60
8.1.40.0030.00617.70
8.1.30.0040.00417.79
8.1.20.0000.00817.65
8.1.10.0000.00717.77
8.1.00.0000.00717.70
8.0.300.0000.00818.77
8.0.290.0050.00216.88
8.0.280.0040.00418.54
8.0.270.0040.00417.20
8.0.260.0030.00317.00
8.0.250.0070.00017.07
8.0.240.0070.00017.10
8.0.230.0050.00517.00
8.0.220.0050.00217.02
8.0.210.0030.00517.07
8.0.200.0030.00317.04
8.0.190.0090.00017.15
8.0.180.0000.00716.93
8.0.170.0030.00317.04
8.0.160.0040.00417.04
8.0.150.0030.00317.05
8.0.140.0070.00016.97
8.0.130.0000.00513.50
8.0.120.0000.00917.01
8.0.110.0000.00817.07
8.0.100.0000.00717.00
8.0.90.0040.00416.92
8.0.80.0030.01217.04
8.0.70.0040.00416.84
8.0.60.0070.00017.02
8.0.50.0070.00017.09
8.0.30.0160.00017.19
8.0.20.0090.01517.40
8.0.10.0050.00316.98
8.0.00.0120.00616.98
7.4.330.0030.00315.55
7.4.320.0030.00316.64
7.4.300.0000.00716.78
7.4.290.0030.00316.80
7.4.280.0000.00816.76
7.4.270.0030.00316.66
7.4.260.0090.00316.75
7.4.250.0040.00416.73
7.4.240.0000.00716.86
7.4.230.0030.00316.62
7.4.220.0130.00616.89
7.4.210.0070.00716.73
7.4.200.0030.00316.71
7.4.160.0120.00716.68
7.4.150.0060.01217.40
7.4.140.0120.00717.86
7.4.130.0150.00916.68
7.4.120.0080.01216.70
7.3.330.0020.00213.26
7.3.320.0000.00513.22
7.3.310.0030.00616.26
7.3.300.0070.00016.33
7.3.290.0070.00816.49
7.3.280.0080.00816.45
7.3.270.0150.00917.40
7.3.260.0120.00616.53
7.3.250.0090.01116.41
7.3.240.0100.01016.72
7.1.60.0290.00335.25

preferences:
32.68 ms | 400 KiB | 5 Q