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][0]; #$z = utf8_encode($z); #$z = iconv(mb_detect_encoding($z, mb_detect_order(), true), "UTF-8", $z); #var_dump(mb_detect_encoding($data)); var_dump(ord($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.0110.01116.50
8.3.50.0070.00716.43
8.3.40.0070.00718.70
8.3.30.0030.01218.98
8.3.20.0070.00020.34
8.3.10.0030.00623.71
8.3.00.0080.00019.38
8.2.180.0140.00416.88
8.2.170.0140.00022.96
8.2.160.0030.01020.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0050.00226.35
8.2.110.0090.00319.21
8.2.100.0070.00418.07
8.2.90.0050.00319.27
8.2.80.0060.00318.05
8.2.70.0030.00517.55
8.2.60.0080.00018.03
8.2.50.0000.00818.10
8.2.40.0040.00420.46
8.2.30.0040.00421.13
8.2.20.0040.00418.06
8.2.10.0030.00518.03
8.2.00.0040.00418.13
8.1.280.0040.01425.92
8.1.270.0080.00023.84
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0090.00022.05
8.1.230.0030.00920.94
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0000.00820.36
8.1.160.0020.00518.95
8.1.150.0000.00820.54
8.1.140.0070.00019.53
8.1.130.0000.00718.84
8.1.120.0050.00217.55
8.1.110.0040.00417.53
8.1.100.0000.00817.57
8.1.90.0020.00517.57
8.1.80.0050.00317.57
8.1.70.0080.00017.42
8.1.60.0000.00717.55
8.1.50.0000.00817.52
8.1.40.0030.00617.68
8.1.30.0040.00417.69
8.1.20.0000.00817.74
8.1.10.0000.00717.73
8.1.00.0070.00017.54
8.0.300.0000.00721.63
8.0.290.0000.00716.88
8.0.280.0000.00718.39
8.0.270.0000.00717.21
8.0.260.0030.00316.86
8.0.250.0030.00316.91
8.0.240.0040.00416.97
8.0.230.0050.00517.08
8.0.220.0000.00617.00
8.0.210.0070.00016.98
8.0.200.0000.00617.02
8.0.190.0050.00316.92
8.0.180.0070.00017.02
8.0.170.0000.00716.87
8.0.160.0050.00317.04
8.0.150.0000.00916.90
8.0.140.0070.00016.84
8.0.130.0030.00313.35
8.0.120.0020.00516.95
8.0.110.0040.00416.80
8.0.100.0000.00816.91
8.0.90.0000.00716.85
8.0.80.0100.00716.94
8.0.70.0000.00816.84
8.0.60.0000.00816.93
8.0.50.0050.00316.94
8.0.30.0100.00817.14
8.0.20.0110.00717.40
8.0.10.0000.00716.97
8.0.00.0140.00416.97
7.4.330.0000.00515.55
7.4.320.0030.00316.75
7.4.300.0000.00616.63
7.4.290.0030.00316.63
7.4.280.0050.00516.64
7.4.270.0000.00716.67
7.4.260.0060.00316.52
7.4.250.0080.00016.67
7.4.240.0080.00016.60
7.4.230.0000.00716.75
7.4.220.0070.01416.73
7.4.210.0040.01116.75
7.4.200.0050.00316.73
7.4.160.0070.00916.55
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0060.01316.70
7.4.120.0170.00416.66
7.3.330.0030.00313.23
7.3.320.0050.00013.14
7.3.310.0070.00016.41
7.3.300.0000.00716.37
7.3.290.0080.00816.47
7.3.280.0110.00716.41
7.3.270.0160.00317.40
7.3.260.0130.00816.61
7.3.250.0080.01016.45
7.3.240.0100.01016.42
7.1.60.0360.01435.23

preferences:
37.85 ms | 401 KiB | 5 Q