3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '43_this_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.0090.00616.63
8.3.60.0150.00016.96
8.3.50.0050.00917.92
8.3.40.0070.01019.08
8.3.30.0110.00418.88
8.3.20.0030.00523.59
8.3.10.0080.00022.10
8.3.00.0040.00420.78
8.2.190.0130.00316.63
8.2.180.0130.00618.79
8.2.170.0170.00022.96
8.2.160.0070.01020.52
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00526.16
8.2.110.0070.01622.13
8.2.100.0060.00618.03
8.2.90.0040.00417.88
8.2.80.0080.00018.03
8.2.70.0040.00417.93
8.2.60.0060.00317.93
8.2.50.0050.00318.10
8.2.40.0080.00021.19
8.2.30.0050.00319.21
8.2.20.0040.00418.14
8.2.10.0070.00019.13
8.2.00.0040.00419.21
8.1.280.0150.00025.92
8.1.270.0080.00022.47
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.82
8.1.230.0070.00420.86
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00818.55
8.1.160.0040.00418.89
8.1.150.0040.00418.64
8.1.140.0040.00420.32
8.1.130.0000.00719.98
8.1.120.0040.00417.52
8.1.110.0040.00417.55
8.1.100.0000.00817.44
8.1.90.0070.00017.55
8.1.80.0030.00717.55
8.1.70.0000.00717.55
8.1.60.0090.00017.72
8.1.50.0000.00917.60
8.1.40.0000.00917.61
8.1.30.0060.00317.75
8.1.20.0030.00617.69
8.1.10.0040.00417.68
8.1.00.0060.00617.68
8.0.300.0000.00719.85
8.0.290.0000.00716.63
8.0.280.0000.00718.37
8.0.270.0030.00317.22
8.0.260.0030.00319.92
8.0.250.0000.00817.03
8.0.240.0000.00717.02
8.0.230.0000.00717.02
8.0.220.0030.00316.84
8.0.210.0040.00417.00
8.0.200.0040.00417.04
8.0.190.0040.00417.01
8.0.180.0090.00016.95
8.0.170.0030.00516.96
8.0.160.0040.00417.00
8.0.150.0040.00416.96
8.0.140.0000.00816.99
8.0.130.0050.00013.44
8.0.120.0030.00616.97
8.0.110.0040.00417.04
8.0.100.0040.00416.93
8.0.90.0090.00017.06
8.0.80.0140.00716.94
8.0.70.0040.00416.79
8.0.60.0040.00416.82
8.0.50.0000.00816.85
8.0.30.0050.01717.08
8.0.20.0040.01417.42
8.0.10.0040.00417.04
8.0.00.0100.01016.73
7.4.330.0050.00015.55
7.4.320.0030.00316.75
7.4.300.0000.00716.81
7.4.290.0000.00716.64
7.4.280.0080.00016.73
7.4.270.0040.00416.63
7.4.260.0070.00013.40
7.4.250.0070.00016.78
7.4.240.0050.00316.71
7.4.230.0080.00016.57
7.4.220.0020.00416.52
7.4.210.0100.00616.72
7.4.200.0000.00716.68
7.4.130.0150.00616.68
7.4.120.0140.00616.52
7.4.110.0120.00616.65
7.4.100.0130.01016.84
7.4.90.0100.00716.44
7.4.80.0090.01219.39
7.4.70.0100.00716.60
7.4.60.0090.00916.82
7.4.50.0030.01016.57
7.4.40.0120.00616.61
7.4.10.0110.00515.11
7.4.00.0050.01114.86
7.3.330.0030.00316.34
7.3.320.0050.00013.23
7.3.310.0030.00316.15
7.3.300.0000.00716.40
7.3.290.0000.00716.26
7.3.280.0100.01016.38
7.3.260.0130.00516.63
7.3.240.0110.00716.42
7.3.230.0090.00916.37
7.3.210.0140.00316.65
7.3.200.0100.00716.62
7.3.190.0110.00616.66
7.3.180.0030.01416.43
7.3.170.0160.00416.63
7.3.160.0080.00816.44
7.3.130.0000.01814.48
7.3.120.0060.00914.98
7.3.110.0060.01215.00
7.3.100.0090.00714.91
7.3.90.0110.00514.89
7.3.80.0090.00814.76
7.3.70.0080.00614.83
7.3.60.0070.00615.04
7.3.50.0070.00714.95
7.3.40.0050.00614.71
7.3.30.0030.00814.95
7.3.20.0020.00915.84
7.3.10.0050.01015.71
7.3.00.0100.00415.94
7.2.330.0070.01116.38
7.2.320.0050.01316.54
7.2.310.0090.00616.58
7.2.300.0090.00916.48
7.2.290.0070.01016.78
7.2.260.0070.01014.82
7.2.250.0030.00915.10
7.2.240.0030.01015.10
7.2.230.0080.00814.94
7.2.220.0060.00814.87
7.2.210.0070.00815.05
7.2.200.0040.00914.97
7.2.190.0050.00814.99
7.2.180.0030.01015.14
7.2.170.0050.00814.93
7.2.160.0070.01014.90
7.2.150.0030.00916.18
7.2.140.0090.00816.09
7.2.130.0070.00615.85
7.2.120.0080.00716.20
7.2.110.0120.00316.00
7.2.100.0020.01116.00
7.2.90.0050.01216.13
7.2.80.0050.00815.86
7.2.70.0080.00815.92
7.2.60.0040.01216.07
7.2.50.0050.01115.88
7.2.40.0040.01115.91
7.2.30.0060.00815.97
7.2.20.0080.00516.04
7.2.10.0020.01216.14
7.2.00.0050.00915.99
7.1.330.0070.00715.90
7.1.320.0080.00715.11
7.1.310.0100.00514.83
7.1.300.0220.00814.81
7.1.290.0050.00614.88
7.1.280.0020.01214.86
7.1.270.0070.00514.81
7.1.260.0040.01015.07
7.1.250.0050.00815.13
7.1.240.0030.01215.84
7.1.230.0110.00416.01
7.1.220.0130.00315.49
7.1.210.0030.01115.82
7.1.200.0100.00315.56
7.1.190.0040.01115.95
7.1.180.0070.00715.88
7.1.170.0070.00715.89
7.1.160.0000.01015.93
7.1.150.0040.01215.86
7.1.140.0090.00915.96
7.1.130.0060.00615.85
7.1.120.0040.01115.65
7.1.110.0110.00415.93
7.1.100.0030.01015.80
7.1.90.0100.00315.93
7.1.80.0060.01015.87
7.1.70.0040.00415.86
7.1.60.0030.01115.91
7.1.50.0060.00315.74
7.1.40.0040.00815.86
7.1.30.0040.01116.00
7.1.20.0030.00615.86
7.1.10.0070.00715.96
7.1.00.0090.00015.82

preferences:
63.59 ms | 401 KiB | 5 Q