3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '43this_2 is test'; preg_match('/(?P<test>\w+)/', $string, $matches); // basic syntax var_dump($matches['test']); preg_match('/(?<test>.+)/', $string, $matches); // alternative var_dump($matches['test']); preg_match("/(?'test'.+)/", $string, $matches); // alternative var_dump($matches['test']);

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.0120.00316.63
8.3.60.0120.00316.38
8.3.50.0070.00718.07
8.3.40.0040.01218.93
8.3.30.0070.00718.78
8.3.20.0000.00721.73
8.3.10.0040.00421.87
8.3.00.0090.00020.68
8.2.190.0030.01416.88
8.2.180.0040.01518.41
8.2.170.0100.00722.96
8.2.160.0100.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00619.30
8.2.100.0080.00417.84
8.2.90.0070.00317.88
8.2.80.0060.00617.97
8.2.70.0040.00417.93
8.2.60.0060.00318.22
8.2.50.0040.00418.10
8.2.40.0000.00921.30
8.2.30.0080.00019.31
8.2.20.0050.00218.12
8.2.10.0040.00419.20
8.2.00.0000.00719.14
8.1.280.0140.00025.92
8.1.270.0040.00422.47
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0080.00023.72
8.1.230.0080.00319.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0030.00618.71
8.1.160.0030.00618.92
8.1.150.0030.00618.73
8.1.140.0040.00420.21
8.1.130.0000.00720.09
8.1.120.0000.00717.52
8.1.110.0040.00417.54
8.1.100.0000.00717.53
8.1.90.0000.00717.54
8.1.80.0030.00717.45
8.1.70.0070.00017.55
8.1.60.0060.00317.69
8.1.50.0040.00417.62
8.1.40.0030.00517.61
8.1.30.0080.00017.70
8.1.20.0050.00317.76
8.1.10.0040.00417.73
8.1.00.0030.00717.52
8.0.300.0000.00820.08
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0030.00317.26
8.0.260.0000.00620.03
8.0.250.0070.00016.94
8.0.240.0000.00717.08
8.0.230.0070.00017.03
8.0.220.0000.00716.95
8.0.210.0040.00416.94
8.0.200.0050.00216.92
8.0.190.0040.00416.90
8.0.180.0000.00816.86
8.0.170.0060.00316.91
8.0.160.0030.00316.89
8.0.150.0070.00016.96
8.0.140.0000.00716.97
8.0.130.0030.00313.41
8.0.120.0040.00416.88
8.0.110.0070.00017.02
8.0.100.0000.00716.84
8.0.90.0050.00516.80
8.0.80.0090.00616.89
8.0.70.0030.00317.04
8.0.60.0040.00417.04
8.0.50.0030.00617.02
8.0.30.0080.01117.16
8.0.20.0160.00417.21
8.0.10.0060.00316.97
8.0.00.0110.00716.92
7.4.330.0050.00015.55
7.4.320.0030.00316.66
7.4.300.0000.00616.64
7.4.290.0050.00316.59
7.4.280.0000.00916.79
7.4.270.0000.00716.74
7.4.260.0030.00313.45
7.4.250.0050.00216.64
7.4.240.0040.00416.73
7.4.230.0040.00416.73
7.4.220.0070.00016.74
7.4.210.0060.00916.76
7.4.200.0040.00416.64
7.4.130.0100.01316.84
7.4.120.0120.00616.73
7.4.110.0030.01416.72
7.4.100.0130.00416.67
7.4.90.0120.00916.68
7.4.80.0130.01019.39
7.4.70.0120.00416.70
7.4.60.0030.01516.66
7.4.50.0030.00816.64
7.4.40.0150.00316.73
7.4.00.0070.00715.06
7.3.330.0070.00016.18
7.3.320.0000.00513.14
7.3.310.0000.00616.27
7.3.300.0000.00716.33
7.3.290.0000.00716.33
7.3.280.0060.01316.31
7.3.260.0100.00916.60
7.3.240.0120.00816.52
7.3.230.0130.00616.42
7.3.210.0120.00616.34
7.3.200.0040.01216.41
7.3.190.0090.00616.71
7.3.180.0120.00916.61
7.3.170.0000.01716.34
7.3.160.0030.01316.33
7.3.100.0060.00714.93
7.3.90.0030.01014.91
7.3.80.0000.01314.80
7.3.70.0000.01414.53
7.3.60.0060.00614.80
7.3.50.0070.00714.96
7.3.40.0080.00614.76
7.3.30.0060.00615.09
7.3.20.0090.01014.87
7.3.10.0000.01414.96
7.3.00.0060.01314.76
7.2.330.0140.00316.61
7.2.320.0130.00916.48
7.2.310.0040.01116.54
7.2.300.0140.00316.75
7.2.290.0110.00716.57
7.2.230.0000.01414.84
7.2.220.0060.00915.14
7.2.210.0030.01015.06
7.2.200.0030.01014.96
7.2.190.0080.00614.97
7.2.180.0060.00914.70
7.2.170.0060.00914.97
7.2.160.0140.00315.29
7.2.150.0030.01214.84
7.2.140.0000.01914.98
7.2.130.0120.00415.04
7.2.120.0090.00615.14
7.2.110.0060.00915.07
7.2.100.0000.01414.96
7.2.90.0090.00615.31
7.2.80.0090.00914.88
7.2.70.0090.01215.07
7.2.60.0090.01015.24
7.2.50.0120.00415.02
7.2.40.0030.01715.18
7.2.30.0180.00315.18
7.2.20.0120.00414.97
7.2.10.0040.01214.85
7.2.00.0060.00914.91
7.1.320.0060.00914.34
7.1.310.0040.00814.00
7.1.300.0110.00314.14
7.1.290.0120.00713.98
7.1.280.0070.00713.71
7.1.270.0120.00613.78
7.1.260.0120.00813.87
7.1.250.0070.00714.15

preferences:
18.41 ms | 401 KiB | 5 Q