3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = ['auto', 'int', 'float', 'string', 'html', 'list', 'pattern']; // echo '('.implode('|', $types).')'; $str = 'fdssdf,565848,sdf,dsf,sdf,новаева,f,sdf'; preg_match_all('/(\w+\,)|\w+/iu', $str, $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.0040.01116.50
8.3.50.0090.00616.49
8.3.40.0090.00918.82
8.3.30.0110.00418.56
8.3.20.0040.00421.49
8.3.10.0080.00023.53
8.3.00.0040.00417.93
8.2.180.0110.00718.67
8.2.170.0150.00322.96
8.2.160.0110.00320.52
8.2.150.0040.00424.18
8.2.140.0080.00824.66
8.2.130.0040.00420.38
8.2.120.0060.00326.35
8.2.110.0110.00019.27
8.2.100.0060.00617.97
8.2.90.0080.00019.08
8.2.80.0040.00417.97
8.2.70.0030.00517.88
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0000.00820.55
8.2.30.0000.00821.05
8.2.20.0040.00417.89
8.2.10.0040.00417.95
8.2.00.0070.00017.95
8.1.280.0160.00325.92
8.1.270.0030.00518.82
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0110.00020.73
8.1.230.0110.00018.96
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0000.01017.47
8.1.190.0080.00017.48
8.1.180.0050.00318.10
8.1.170.0030.00618.63
8.1.160.0000.00719.10
8.1.150.0030.00620.61
8.1.140.0000.00819.65
8.1.130.0030.00318.89
8.1.120.0000.00717.54
8.1.110.0020.00517.57
8.1.100.0040.00417.51
8.1.90.0000.00817.47
8.1.80.0060.00317.44
8.1.70.0030.00317.54
8.1.60.0040.00417.71
8.1.50.0050.00317.62
8.1.40.0090.00017.67
8.1.30.0050.00317.80
8.1.20.0000.00817.70
8.1.10.0030.00617.57
8.1.00.0070.00317.48
8.0.300.0040.00420.14
8.0.290.0040.00416.88
8.0.280.0030.00518.41
8.0.270.0070.00017.27
8.0.260.0030.00318.83
8.0.250.0040.00417.18
8.0.240.0030.00717.20
8.0.230.0040.00417.06
8.0.220.0000.00717.05
8.0.210.0030.00317.07
8.0.200.0030.00317.04
8.0.190.0070.00317.05
8.0.180.0040.00417.16
8.0.170.0050.00217.05
8.0.160.0050.00517.05
8.0.150.0000.00716.99
8.0.140.0000.00717.03
8.0.130.0040.00413.50
8.0.120.0040.00417.03
8.0.110.0000.00716.98
8.0.100.0040.00417.05
8.0.90.0040.00417.10
8.0.80.0040.01117.09
8.0.70.0040.00417.02
8.0.60.0000.00817.10
8.0.50.0030.00717.12
8.0.30.0100.00917.16
8.0.20.0100.00917.40
8.0.10.0040.00417.04
8.0.00.0090.01217.00
7.4.330.0020.00215.55
7.4.320.0080.00016.80
7.4.300.0060.00016.60
7.4.290.0170.00016.70
7.4.280.0040.00416.61
7.4.270.0000.00716.85
7.4.260.0000.00716.72
7.4.250.0000.00816.82
7.4.240.0000.00716.73
7.4.230.0030.00316.78
7.4.220.0170.00716.90
7.4.210.0100.00316.70
7.4.200.0070.00016.83
7.4.160.0100.00816.62
7.4.150.0140.00317.40
7.4.140.0150.00717.86
7.4.130.0100.01316.68
7.4.120.0090.01816.61
7.4.110.0130.00716.68
7.4.100.0070.01016.59
7.4.90.0080.01116.78
7.4.80.0030.01419.39
7.4.70.0130.00316.83
7.4.60.0150.00316.71
7.4.50.0070.01116.45
7.4.40.0050.01116.66
7.4.30.0100.00716.73
7.4.00.0040.01415.09
7.3.330.0020.00213.22
7.3.320.0000.00513.11
7.3.310.0030.00316.35
7.3.300.0030.00316.31
7.3.290.0110.00316.35
7.3.280.0090.00716.35
7.3.270.0110.00817.40
7.3.260.0160.00716.48
7.3.250.0100.01016.55
7.3.240.0120.00516.45
7.3.230.0120.00316.33
7.3.210.0060.01216.66
7.3.200.0090.01516.36
7.3.190.0070.01116.43
7.3.180.0070.01016.59
7.3.170.0100.00716.75
7.3.160.0030.01316.30
7.3.120.0060.01314.82
7.3.110.0000.01214.60
7.3.100.0040.01214.75
7.3.90.0120.00314.82
7.3.80.0000.00914.92
7.3.70.0030.01414.79
7.3.60.0040.00814.99
7.3.50.0090.00614.77
7.3.40.0070.00714.84
7.3.30.0120.00314.61
7.3.20.0070.00716.75
7.3.10.0090.00916.78
7.3.00.0040.01116.89
7.2.330.0120.00916.61
7.2.320.0180.00616.68
7.2.310.0060.01316.55
7.2.300.0110.01416.56
7.2.290.0060.00916.52
7.2.250.0100.01014.97
7.2.240.0100.00715.01
7.2.230.0090.00614.86
7.2.220.0050.00514.78
7.2.210.0100.00614.93
7.2.200.0030.00614.98
7.2.190.0040.00814.95
7.2.180.0100.00615.23
7.2.170.0070.00714.93
7.2.60.0040.01117.04
7.2.00.0000.01119.17
7.1.330.0080.00815.90
7.1.320.0040.01115.75
7.1.310.0090.00616.19
7.1.300.0070.00615.89
7.1.290.0100.00315.68
7.1.280.0070.00715.97
7.1.270.0000.01615.97
7.1.260.0080.00415.89
7.1.200.0070.00015.68
7.1.100.0000.01118.16
7.1.70.0060.00917.06
7.1.60.0170.01734.98
7.1.50.0230.01734.87
7.1.40.0200.02034.64
7.1.30.0170.02034.57
7.1.20.0170.02034.78
7.1.10.0030.01716.63
7.1.00.0030.01016.96
7.0.200.0070.01016.55
7.0.190.0030.01016.99
7.0.180.0030.01016.51
7.0.170.0000.01716.20
7.0.160.1030.01016.33
7.0.150.0030.01316.32
7.0.140.0030.01016.55
7.0.130.0030.01016.66
7.0.120.0070.00716.42
7.0.110.0070.01316.57
7.0.100.0030.01016.57
7.0.90.0100.00316.41
7.0.80.0000.01716.48
7.0.70.0070.01016.50
7.0.60.0070.01016.22
7.0.50.0170.00316.56
7.0.40.0000.01316.73
7.0.30.0030.01016.68
7.0.20.0000.01316.77
7.0.10.0070.00716.37
7.0.00.0030.01016.77

preferences:
58.19 ms | 401 KiB | 5 Q