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)); 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.0120.00416.75
8.3.50.0070.00716.54
8.3.40.0120.00319.12
8.3.30.0100.00718.79
8.3.20.0130.00320.04
8.3.10.0040.00423.53
8.3.00.0050.00319.38
8.2.180.0090.01216.75
8.2.170.0040.01122.96
8.2.160.0130.00020.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00321.18
8.2.120.0070.00026.35
8.2.110.0060.00320.40
8.2.100.0090.00317.76
8.2.90.0050.00319.21
8.2.80.0100.00017.97
8.2.70.0000.00817.63
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0040.00420.42
8.2.30.0000.00719.19
8.2.20.0030.00517.95
8.2.10.0040.00418.13
8.2.00.0000.00718.03
8.1.280.0080.00825.92
8.1.270.0080.00022.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0140.00723.80
8.1.230.0040.00717.89
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.36
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00618.65
8.1.160.0000.00819.03
8.1.150.0000.00720.69
8.1.140.0040.00419.52
8.1.130.0000.00818.77
8.1.120.0070.00017.62
8.1.110.0070.00017.55
8.1.100.0050.00317.54
8.1.90.0040.00417.54
8.1.80.0000.00717.49
8.1.70.0040.00417.53
8.1.60.0030.00617.66
8.1.50.0030.00517.61
8.1.40.0030.00517.51
8.1.30.0000.00817.74
8.1.20.0050.00517.71
8.1.10.0050.00317.73
8.1.00.0000.00817.61
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0030.00318.31
8.0.270.0030.00317.22
8.0.260.0060.00016.75
8.0.250.0030.00516.93
8.0.240.0070.00017.03
8.0.230.0000.00717.09
8.0.220.0030.00316.98
8.0.210.0040.00416.91
8.0.200.0060.00016.92
8.0.190.0040.00416.93
8.0.180.0040.00417.02
8.0.170.0040.00417.03
8.0.160.0040.00416.95
8.0.150.0030.00616.87
8.0.140.0030.00316.95
8.0.130.0000.00613.39
8.0.120.0050.00516.93
8.0.110.0070.00016.91
8.0.100.0020.00516.84
8.0.90.0040.00417.03
8.0.80.0090.00616.94
8.0.70.0040.00416.80
8.0.60.0050.00217.01
8.0.50.0040.00416.85
8.0.30.0110.00717.26
8.0.20.0140.00817.40
8.0.10.0000.00717.06
8.0.00.0140.00316.91
7.4.330.0000.00515.55
7.4.320.0030.00316.74
7.4.300.0000.00616.70
7.4.290.0030.00616.57
7.4.280.0090.00016.65
7.4.270.0000.00816.66
7.4.260.0070.00016.54
7.4.250.0040.00416.61
7.4.240.0000.00716.73
7.4.230.0070.00016.55
7.4.220.0100.00716.67
7.4.210.0040.01116.76
7.4.200.0070.00016.81
7.4.160.0080.01116.62
7.4.150.0110.00717.40
7.4.140.0090.01117.86
7.4.130.0090.01216.69
7.4.120.0110.00916.69
7.3.330.0000.00513.10
7.3.320.0030.00313.25
7.3.310.0040.00416.41
7.3.300.0030.00316.25
7.3.290.0040.01016.39
7.3.280.0070.01016.44
7.3.270.0190.00017.40
7.3.260.0110.00916.47
7.3.250.0110.00816.45
7.3.240.0130.00816.48
7.1.60.0140.01135.44

preferences:
44.32 ms | 400 KiB | 5 Q