3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $str = 'test1234'; preg_match_all('!\d+!', $str, $matches);*/ /*for ($matches = 0; $matches <9; $matches++) { $letters = range('a','j'); var_dump($letters[$matches]); }*/ $str = 'test1234'; preg_match_all('!\d+!', $str, $matches); $matches = preg_replace("/[^0-9]/","a-j",$matches); var_dump($matches);

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.0150.00718.68
8.3.50.0100.00718.19
8.3.40.0040.01119.09
8.3.30.0130.00318.80
8.3.20.0110.00420.38
8.3.10.0030.00621.68
8.3.00.0000.00819.38
8.2.180.0100.01018.55
8.2.170.0140.00022.96
8.2.160.0060.01320.34
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00022.33
8.2.120.0040.00426.35
8.2.110.0060.00322.11
8.2.100.0080.00417.77
8.2.90.0000.00818.22
8.2.80.0000.00917.97
8.2.70.0070.00317.91
8.2.60.0060.00317.80
8.2.50.0030.00618.10
8.2.40.0000.00820.45
8.2.30.0080.00019.08
8.2.20.0060.00317.93
8.2.10.0040.00418.08
8.2.00.0000.00718.27
8.1.280.0090.00625.92
8.1.270.0080.00020.17
8.1.260.0070.00726.35
8.1.250.0030.00628.09
8.1.240.0030.00624.02
8.1.230.0070.00622.74
8.1.220.0090.00017.79
8.1.210.0030.00518.84
8.1.200.0060.00317.38
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0000.01018.64
8.1.160.0000.00718.85
8.1.150.0000.00718.73
8.1.140.0040.00417.74
8.1.130.0000.00718.80
8.1.120.0040.00417.48
8.1.110.0040.00417.54
8.1.100.0000.00917.55
8.1.90.0040.00417.57
8.1.80.0040.00317.43
8.1.70.0050.00317.59
8.1.60.0000.00817.55
8.1.50.0060.00317.50
8.1.40.0040.00417.64
8.1.30.0030.00517.68
8.1.20.0040.00417.79
8.1.10.0070.00417.57
8.1.00.0030.00617.61
8.0.300.0080.00020.02
8.0.290.0050.00316.88
8.0.280.0070.00018.46
8.0.270.0030.00317.27
8.0.260.0000.00716.86
8.0.250.0000.00717.08
8.0.240.0030.00317.07
8.0.230.0050.00316.99
8.0.220.0050.00317.02
8.0.210.0050.00216.98
8.0.200.0030.00317.12
8.0.190.0000.00716.98
8.0.180.0040.00417.06
8.0.170.0030.00617.11
8.0.160.0070.00017.07
8.0.150.0100.00017.03
8.0.140.0030.00317.03
8.0.130.0060.00013.42
8.0.120.0000.00716.91
8.0.110.0050.00316.93
8.0.100.0040.00416.81
8.0.90.0000.00817.03
8.0.80.0060.00916.98
8.0.70.0070.00016.89
8.0.60.0080.00016.91
8.0.50.0000.00717.00
8.0.30.0090.01117.36
8.0.20.0140.00917.40
8.0.10.0030.00517.01
8.0.00.0090.00816.74
7.4.330.0000.00515.55
7.4.320.0030.00316.79
7.4.300.0060.00016.79
7.4.290.0030.00316.54
7.4.280.0070.00316.75
7.4.270.0000.00716.71
7.4.260.0070.00016.65
7.4.250.0000.00816.55
7.4.240.0000.00816.64
7.4.230.0040.00416.55
7.4.220.0030.00516.53
7.4.210.0110.00416.86
7.4.200.0030.00316.84
7.4.160.0080.01116.66
7.4.150.0120.00617.40
7.4.140.0110.01217.86
7.4.130.0090.00916.68
7.4.120.0070.01316.69
7.4.110.0130.00516.60
7.4.100.0090.00916.71
7.4.90.0200.00016.81
7.4.80.0030.01519.39
7.4.70.0050.01516.54
7.4.60.0040.01716.65
7.4.50.0090.00616.54
7.4.40.0030.01416.43
7.4.00.0060.00614.93
7.3.330.0000.00513.08
7.3.320.0030.00313.08
7.3.310.0070.00016.16
7.3.300.0000.00716.23
7.3.290.0070.00816.31
7.3.280.0120.01316.29
7.3.270.0080.01617.40
7.3.260.0120.00716.47
7.3.250.0090.01016.39
7.3.240.0120.00716.53
7.3.230.0070.01016.53
7.3.210.0080.00816.49
7.3.200.0080.00816.54
7.3.190.0080.01216.51
7.3.180.0060.00916.26
7.3.170.0070.01016.41
7.3.160.0100.00616.41
7.2.330.0090.01316.68
7.2.320.0070.01716.73
7.2.310.0070.01316.58
7.2.300.0060.01216.60
7.2.290.0060.01216.72
7.2.110.0080.01116.51
7.2.60.0060.01017.04
7.2.10.0160.02018.11
7.2.00.0230.01517.99
7.1.200.0030.00915.80
7.1.130.0140.01417.18
7.1.120.0220.01217.12
7.1.110.0180.01116.09
7.1.100.0200.00416.30
7.1.90.0150.01115.93
7.1.80.0150.01816.49
7.1.70.0250.00615.54
7.1.60.0350.01333.55
7.1.50.0430.00932.97
7.1.40.0320.01632.97
7.1.30.0410.00932.80
7.1.20.0460.00732.86
7.1.10.0200.00414.79
7.1.00.0180.01214.82

preferences:
54.18 ms | 400 KiB | 5 Q