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\}]+'; $x = '[^A-Z]'; $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.0170.00318.68
8.3.60.0070.01016.63
8.3.50.0120.00716.53
8.3.40.0100.00718.72
8.3.30.0110.00418.41
8.3.20.0000.00820.05
8.3.10.0040.00422.03
8.3.00.0050.00319.25
8.2.180.0180.00016.63
8.2.170.0110.00422.96
8.2.160.0110.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00721.10
8.2.120.0080.00026.35
8.2.110.0040.00422.38
8.2.100.0040.00718.16
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0090.00018.04
8.2.50.0060.00318.10
8.2.40.0060.00320.54
8.2.30.0040.00421.04
8.2.20.0070.00017.97
8.2.10.0040.00418.17
8.2.00.0000.00718.03
8.1.280.0120.00625.92
8.1.270.0040.00421.91
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00320.36
8.1.230.0040.00719.17
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.22
8.1.190.0050.00517.13
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0000.00719.15
8.1.150.0000.00720.74
8.1.140.0040.00419.68
8.1.130.0030.00318.94
8.1.120.0070.00017.50
8.1.110.0040.00417.40
8.1.100.0000.00817.55
8.1.90.0080.00017.50
8.1.80.0040.00417.56
8.1.70.0050.00217.54
8.1.60.0000.00817.63
8.1.50.0030.00617.54
8.1.40.0090.00017.47
8.1.30.0040.00417.54
8.1.20.0000.00717.68
8.1.10.0040.00417.64
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.54
8.0.270.0020.00517.27
8.0.260.0000.00616.89
8.0.250.0000.00717.04
8.0.240.0000.00716.92
8.0.230.0100.00016.93
8.0.220.0020.00516.84
8.0.210.0000.00716.92
8.0.200.0000.00716.99
8.0.190.0000.00816.96
8.0.180.0000.00716.94
8.0.170.0040.00416.93
8.0.160.0030.00316.89
8.0.150.0000.00716.96
8.0.140.0030.00316.94
8.0.130.0000.00513.37
8.0.120.0030.00516.89
8.0.110.0000.00816.98
8.0.100.0030.00516.80
8.0.90.0020.00516.92
8.0.80.0070.01016.91
8.0.70.0040.00416.91
8.0.60.0000.00716.82
8.0.50.0040.00416.98
8.0.30.0090.00817.03
8.0.20.0110.00717.40
8.0.10.0000.00816.89
8.0.00.0140.00316.89
7.4.330.0050.00015.55
7.4.320.0060.00016.46
7.4.300.0070.00016.67
7.4.290.0000.00716.56
7.4.280.0000.00716.49
7.4.270.0070.00016.57
7.4.260.0070.00316.54
7.4.250.0070.00016.63
7.4.240.0000.00716.65
7.4.230.0030.00516.66
7.4.220.0100.00716.68
7.4.210.0090.00616.69
7.4.200.0070.00016.46
7.4.160.0140.00616.48
7.4.150.0040.01317.40
7.4.140.0110.00717.86
7.4.130.0160.00616.62
7.4.120.0120.00716.39
7.3.330.0030.00312.98
7.3.320.0050.00013.05
7.3.310.0030.00316.27
7.3.300.0030.00316.11
7.3.290.0100.00716.24
7.3.280.0080.01016.20
7.3.270.0190.00017.40
7.3.260.0120.00716.42
7.3.250.0110.00716.37
7.3.240.0040.01616.37
7.1.70.0040.01517.12

preferences:
40.92 ms | 401 KiB | 5 Q