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.70.0100.00718.68
8.3.60.0120.00616.63
8.3.50.0130.00616.67
8.3.40.0140.00018.72
8.3.30.0120.00318.72
8.3.20.0080.00020.38
8.3.10.0050.00323.78
8.3.00.0040.00419.23
8.2.180.0070.01118.66
8.2.170.0030.01022.96
8.2.160.0030.01020.58
8.2.150.0020.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00021.07
8.2.120.0080.00026.16
8.2.110.0050.00521.01
8.2.100.0040.00718.21
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0030.00620.59
8.2.30.0000.00720.91
8.2.20.0020.00518.04
8.2.10.0050.00318.18
8.2.00.0070.00018.04
8.1.280.0140.00725.92
8.1.270.0040.00424.02
8.1.260.0040.00426.35
8.1.250.0040.01228.09
8.1.240.0030.00623.96
8.1.230.0030.00719.09
8.1.220.0030.00517.78
8.1.210.0050.00318.77
8.1.200.0040.00417.00
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0050.00318.59
8.1.160.0030.00319.05
8.1.150.0030.00520.78
8.1.140.0030.00519.56
8.1.130.0030.00318.85
8.1.120.0000.00717.54
8.1.110.0040.00417.52
8.1.100.0050.00217.53
8.1.90.0070.00017.48
8.1.80.0000.00817.48
8.1.70.0000.00717.51
8.1.60.0080.00017.70
8.1.50.0040.00417.48
8.1.40.0030.00617.58
8.1.30.0020.00517.75
8.1.20.0000.00717.73
8.1.10.0030.00517.70
8.1.00.0040.00417.61
8.0.300.0000.00818.77
8.0.290.0080.00016.75
8.0.280.0030.00318.48
8.0.270.0000.00717.21
8.0.260.0070.00016.87
8.0.250.0000.00717.04
8.0.240.0070.00017.08
8.0.230.0080.00316.99
8.0.220.0030.00317.02
8.0.210.0030.00316.91
8.0.200.0030.00317.05
8.0.190.0070.00017.00
8.0.180.0020.00517.08
8.0.170.0030.00316.98
8.0.160.0070.00016.98
8.0.150.0040.00417.03
8.0.140.0000.00716.94
8.0.130.0000.00613.48
8.0.120.0000.00717.02
8.0.110.0070.00016.95
8.0.100.0070.00016.87
8.0.90.0040.00416.89
8.0.80.0130.00317.06
8.0.70.0000.00717.02
8.0.60.0070.00016.95
8.0.50.0040.00417.11
8.0.30.0100.00717.03
8.0.20.0060.01317.40
8.0.10.0000.00817.17
8.0.00.0120.01216.70
7.4.330.0000.00615.55
7.4.320.0000.00616.71
7.4.300.0040.00416.61
7.4.290.0060.00316.73
7.4.280.0000.00816.54
7.4.270.0050.00316.53
7.4.260.0040.00416.56
7.4.250.0030.00616.56
7.4.240.0030.00316.59
7.4.230.0030.00316.61
7.4.220.0130.00516.57
7.4.210.0040.01116.66
7.4.200.0070.00016.72
7.4.160.0090.01216.65
7.4.150.0200.00617.40
7.4.140.0090.01117.86
7.4.130.0070.01416.59
7.4.120.0090.01116.51
7.3.330.0030.00313.25
7.3.320.0000.00513.08
7.3.310.0040.00416.25
7.3.300.0000.00616.34
7.3.290.0040.00916.31
7.3.280.0080.01016.34
7.3.270.0100.00717.40
7.3.260.0140.00516.32
7.3.250.0070.01116.29
7.3.240.0100.01116.25
7.1.70.0100.00617.12

preferences:
81.71 ms | 401 KiB | 5 Q