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,PREG_OFFSET_CAPTURE); 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.0180.00016.75
8.3.50.0040.01116.39
8.3.40.0120.00318.95
8.3.30.0090.00619.00
8.3.20.0000.00720.34
8.3.10.0080.00021.69
8.3.00.0000.00819.38
8.2.180.0070.01116.87
8.2.170.0140.00022.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00021.07
8.2.120.0030.00626.35
8.2.110.0070.00320.82
8.2.100.0060.00618.18
8.2.90.0030.00619.22
8.2.80.0040.00418.04
8.2.70.0090.00017.75
8.2.60.0000.00818.05
8.2.50.0050.00318.10
8.2.40.0050.00220.55
8.2.30.0080.00021.13
8.2.20.0040.00418.13
8.2.10.0050.00317.95
8.2.00.0040.00418.05
8.1.280.0120.00625.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00323.92
8.1.230.0040.00819.14
8.1.220.0030.00517.76
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00320.42
8.1.160.0040.00419.03
8.1.150.0080.00020.64
8.1.140.0080.00019.46
8.1.130.0000.00718.80
8.1.120.0030.00517.45
8.1.110.0080.00017.55
8.1.100.0000.00717.41
8.1.90.0030.00517.48
8.1.80.0040.00417.55
8.1.70.0000.00717.58
8.1.60.0080.00017.62
8.1.50.0000.00717.59
8.1.40.0000.00817.66
8.1.30.0040.00417.78
8.1.20.0040.00417.79
8.1.10.0000.00717.71
8.1.00.0000.00817.67
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0000.00716.90
8.0.250.0030.00517.07
8.0.240.0000.00717.08
8.0.230.0060.00317.10
8.0.220.0030.00316.93
8.0.210.0000.00717.05
8.0.200.0060.00017.00
8.0.190.0030.00517.12
8.0.180.0070.00017.10
8.0.170.0000.00816.94
8.0.160.0030.00517.00
8.0.150.0080.00017.05
8.0.140.0040.00416.98
8.0.130.0000.00513.43
8.0.120.0040.00416.91
8.0.110.0000.00816.90
8.0.100.0000.00717.00
8.0.90.0050.00217.00
8.0.80.0030.01216.99
8.0.70.0100.00016.86
8.0.60.0040.00417.10
8.0.50.0060.00317.15
8.0.30.0080.00917.13
8.0.20.0110.00817.40
8.0.10.0040.00417.00
8.0.00.0120.00616.93
7.4.330.0020.00215.55
7.4.320.0030.00316.55
7.4.300.0030.00316.66
7.4.290.0000.00716.63
7.4.280.0040.00416.76
7.4.270.0000.00816.70
7.4.260.0090.00016.55
7.4.250.0040.00416.70
7.4.240.0040.00416.75
7.4.230.0000.00716.64
7.4.220.0090.01016.55
7.4.210.0120.00316.68
7.4.200.0000.00716.55
7.4.160.0060.01016.57
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0070.01816.61
7.4.120.0080.01016.74
7.3.330.0000.00513.16
7.3.320.0050.00013.16
7.3.310.0000.00716.54
7.3.300.0000.00616.43
7.3.290.0070.00716.48
7.3.280.0100.00716.44
7.3.270.0000.01717.40
7.3.260.0120.00716.71
7.3.250.0090.01016.44
7.3.240.0100.01116.43
7.1.60.0350.01535.30

preferences:
32.2 ms | 400 KiB | 5 Q