3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('#<(link)(\s[^>]*|)>#i', '<link>', $matches));var_dump($matches); var_dump(preg_match('#<(link)(\s[^>]*|)>#i', '<link/>', $matches));var_dump($matches); var_dump(preg_match('#<(link)(\s[^>]*|)>#i', '<link rel=test>', $matches));var_dump($matches); var_dump(preg_match('#<(link)(\s[^>]*)?>#i', '<link>', $matches));var_dump($matches); var_dump(preg_match('#<(link)(\s[^>]*)?>#i', '<link/>', $matches));var_dump($matches); var_dump(preg_match('#<(link)(\s[^>]*)?>#i', '<link rel=test>', $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.0210.00316.75
8.3.50.0080.00816.34
8.3.40.0100.00618.93
8.3.30.0040.01218.85
8.3.20.0050.00321.96
8.3.10.0080.00021.66
8.3.00.0050.00320.95
8.2.180.0060.01218.54
8.2.170.0000.01422.96
8.2.160.0030.01022.14
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0080.00022.43
8.2.120.0080.00026.35
8.2.110.0040.00419.21
8.2.100.0130.00017.84
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0040.00422.30
8.2.30.0000.00820.93
8.2.20.0070.00017.97
8.2.10.0000.00717.84
8.2.00.0000.00717.89
8.1.280.0060.01225.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00320.89
8.1.230.0110.00019.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0070.00317.23
8.1.180.0050.00318.10
8.1.170.0060.00318.69
8.1.160.0050.00318.89
8.1.150.0000.00720.50
8.1.140.0040.00419.52
8.1.130.0070.00018.78
8.1.120.0040.00417.52
8.1.110.0050.00317.45
8.1.100.0040.00417.56
8.1.90.0050.00317.47
8.1.80.0050.00317.49
8.1.70.0040.00417.47
8.1.60.0040.00417.56
8.1.50.0030.00617.58
8.1.40.0000.00817.62
8.1.30.0080.00017.61
8.1.20.0060.00317.58
8.1.10.0030.00517.60
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0030.00318.28
8.0.270.0000.00717.22
8.0.260.0070.00016.89
8.0.250.0000.00716.88
8.0.240.0020.00516.92
8.0.230.0040.00417.04
8.0.220.0000.00816.84
8.0.210.0070.00016.79
8.0.200.0000.00616.96
8.0.190.0040.00416.85
8.0.180.0050.00317.00
8.0.170.0040.00416.91
8.0.160.0040.00416.77
8.0.150.0040.00416.83
8.0.140.0080.00016.78
8.0.130.0000.00713.34
8.0.120.0080.00016.77
8.0.110.0080.00016.95
8.0.100.0000.00716.73
8.0.90.0000.00716.82
8.0.80.0110.00716.82
8.0.70.0040.00416.91
8.0.60.0040.00416.71
8.0.50.0040.00416.73
8.0.30.0090.01017.11
8.0.20.0150.01517.40
8.0.10.0080.00017.07
8.0.00.0110.00717.02
7.4.330.0000.00515.55
7.4.320.0000.00616.50
7.4.300.0030.00316.54
7.4.290.0030.00316.70
7.4.280.0050.00316.50
7.4.270.0000.00716.69
7.4.260.0030.00316.57
7.4.250.0000.00716.68
7.4.240.0000.00716.70
7.4.230.0030.00316.49
7.4.220.0040.01416.72
7.4.210.0090.01116.68
7.4.200.0070.00016.76
7.4.160.0110.00716.53
7.4.150.0070.01117.40
7.4.140.0140.00817.86
7.4.130.0050.01416.52
7.4.120.0070.01316.51
7.4.110.0070.01116.70
7.4.100.0170.00316.41
7.4.90.0040.01416.66
7.4.80.0170.00819.39
7.4.70.0120.00816.64
7.4.60.0130.00316.61
7.4.50.0070.01016.68
7.4.40.0130.00316.41
7.4.30.0090.01116.58
7.4.00.0100.00615.16
7.3.330.0040.00313.14
7.3.320.0000.00513.23
7.3.310.0000.00716.14
7.3.300.0040.00416.24
7.3.290.0000.00716.14
7.3.280.0080.00816.29
7.3.270.0100.00717.40
7.3.260.0070.01116.48
7.3.250.0140.01016.39
7.3.240.0100.01016.63
7.3.230.0100.00716.43
7.3.210.0100.00716.38
7.3.200.0100.00716.70
7.3.190.0150.00216.39
7.3.180.0030.01716.60
7.3.170.0080.00816.62
7.3.160.0090.00916.25
7.3.120.0110.00614.74
7.3.110.0070.01014.85
7.3.100.0080.00615.04
7.3.90.0090.00614.58
7.3.80.0080.00015.04
7.3.70.0070.00414.81
7.3.60.0030.01014.71
7.3.50.0070.00314.92
7.3.40.0000.01214.86
7.3.30.0000.01414.87
7.3.20.0070.01016.46
7.3.10.0040.00416.38
7.3.00.0040.01116.84
7.2.330.0130.00516.57
7.2.320.0040.01616.42
7.2.310.0130.01316.45
7.2.300.0060.01216.24
7.2.290.0150.01016.59
7.2.240.0090.00915.09
7.2.230.0030.00814.99
7.2.220.0080.00615.21
7.2.210.0050.00314.82
7.2.200.0040.00415.12
7.2.190.0070.00415.07
7.2.180.0060.00615.05
7.2.170.0050.00515.16
7.2.160.0070.00315.13
7.2.150.0060.00316.88
7.2.140.0070.00416.73
7.2.130.0070.01016.92
7.2.120.0040.00416.59
7.2.110.0000.00916.77
7.2.100.0000.00816.84
7.2.90.0100.00316.68
7.2.80.0030.00717.03
7.2.70.0070.00716.82
7.2.60.0030.01116.93
7.2.50.0000.01616.78
7.2.40.0040.00716.75
7.2.30.0040.01117.06
7.2.20.0090.00016.97
7.2.10.0030.01216.71
7.2.00.0080.00918.13
7.1.330.0070.01015.81
7.1.320.0070.00715.95
7.1.310.0000.01415.88
7.1.300.0090.00615.84
7.1.290.0120.00315.84
7.1.280.0060.00915.85
7.1.270.0070.01115.96
7.1.260.0060.00616.07
7.1.250.0100.00315.95
7.1.200.0090.00615.86
7.1.100.0100.00618.26
7.1.70.0000.00717.00
7.1.60.0500.02033.45
7.1.50.0500.01033.21
7.1.40.0370.02032.66
7.1.30.0170.01032.87
7.1.20.0470.00732.89
7.1.10.0330.00314.80
7.1.00.0070.01014.88
7.0.200.0530.00714.69
7.0.190.0070.00715.21
7.0.180.0400.00714.70
7.0.170.0400.00714.43
7.0.160.0070.00714.54
7.0.150.0430.00714.48
7.0.140.0530.00314.73
7.0.130.0100.00714.92
7.0.120.0400.00714.67
7.0.110.0070.01014.68
7.0.100.0400.00714.50
7.0.90.0330.01314.41
7.0.80.0100.01314.69
7.0.70.0330.00714.61
7.0.60.0330.01314.48
7.0.50.0330.01014.44
7.0.40.0600.00714.84
7.0.30.0070.01014.92
7.0.20.0100.00714.77
7.0.10.0330.00714.67
7.0.00.0100.00314.89

preferences:
70.74 ms | 400 KiB | 5 Q