3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<test1>\nDies ist ein Test\n</test1>\n<test2>\nUsw. usf.\n</test2>"; echo $html; preg_match_all("/<([\w]+)[^>]*>(.*?)<\/\1>/", $html, $treffer, PREG_SET_ORDER); echo "\nErgebnis:\n\n"; print_r($treffer); foreach ($treffer as $wert) { echo "gefunden: " . $wert[0] . "\n"; echo "Teil 1: " . $wert[1] . "\n"; }

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.0070.00716.61
8.3.50.0090.00923.01
8.3.40.0120.00318.92
8.3.30.0040.01118.84
8.3.20.0040.00420.29
8.3.10.0080.00023.66
8.3.00.0050.00319.26
8.2.180.0120.00416.88
8.2.170.0070.01422.96
8.2.160.0140.00020.43
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.16
8.2.110.0030.00622.32
8.2.100.0060.00619.70
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0080.00517.92
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0060.00618.09
8.2.20.0050.00317.90
8.2.10.0070.00018.01
8.2.00.0040.00417.72
8.1.280.0100.00325.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.81
8.1.230.0190.00019.12
8.1.220.0080.00017.76
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0060.00317.25
8.1.180.0000.00818.10
8.1.170.0040.00418.81
8.1.160.0000.00722.09
8.1.150.0050.00318.91
8.1.140.0060.00317.53
8.1.130.0030.00317.73
8.1.120.0050.00317.63
8.1.110.0060.00617.25
8.1.100.0040.00417.60
8.1.90.0030.00417.54
8.1.80.0070.00017.66
8.1.70.0030.00517.61
8.1.60.0080.00017.63
8.1.50.0050.00217.70
8.1.40.0090.00017.58
8.1.30.0040.00417.67
8.1.20.0000.00717.82
8.1.10.0040.00417.67
8.1.00.0000.00817.57
8.0.300.0040.00418.77
8.0.290.0030.00617.13
8.0.280.0030.00318.55
8.0.270.0030.00317.20
8.0.260.0000.00817.30
8.0.250.0030.00317.06
8.0.240.0030.00317.07
8.0.230.0040.00417.07
8.0.220.0070.00016.98
8.0.210.0030.00317.03
8.0.200.0030.00317.18
8.0.190.0050.00217.13
8.0.180.0000.00716.91
8.0.170.0040.00417.08
8.0.160.0040.00417.01
8.0.150.0040.00417.04
8.0.140.0060.00316.98
8.0.130.0000.00613.48
8.0.120.0000.00716.95
8.0.110.0040.00417.00
8.0.100.0040.00417.04
8.0.90.0000.00716.93
8.0.80.0030.01417.00
8.0.70.0040.00416.86
8.0.60.0040.00417.02
8.0.50.0040.00416.95
8.0.30.0130.00617.28
8.0.20.0060.01417.40
8.0.10.0040.00417.22
8.0.00.0070.01016.97
7.4.330.0030.00315.04
7.4.320.0060.00016.68
7.4.300.0040.00416.73
7.4.290.0040.00416.68
7.4.280.0000.00716.78
7.4.270.0070.00016.80
7.4.260.0060.00316.66
7.4.250.0070.00016.75
7.4.240.0030.00316.78
7.4.230.0040.00416.90
7.4.220.0090.00916.77
7.4.210.0120.00316.73
7.4.200.0000.00716.73
7.4.160.0120.00316.77
7.4.150.0040.01517.40
7.4.140.0080.00817.86
7.4.130.0110.00716.70
7.4.120.0110.00816.66
7.4.110.0030.01616.50
7.4.100.0080.00816.93
7.4.90.0120.00616.77
7.4.80.0100.01019.39
7.4.70.0110.00816.75
7.4.60.0070.01016.82
7.4.50.0040.00416.64
7.4.40.0030.01416.51
7.4.30.0090.00616.67
7.4.00.0050.01015.13
7.3.330.0000.00713.34
7.3.320.0050.00013.22
7.3.310.0000.00716.50
7.3.300.0000.00716.41
7.3.290.0110.01116.46
7.3.280.0100.00616.41
7.3.270.0030.01317.40
7.3.260.0090.01116.93
7.3.250.0050.01416.81
7.3.240.0130.00316.47
7.3.230.0130.00616.60
7.3.210.0100.00716.59
7.3.200.0080.00819.39
7.3.190.0090.00916.45
7.3.180.0100.01016.81
7.3.170.0030.01316.72
7.3.160.0120.00316.51
7.3.120.0120.00615.19
7.3.110.0030.01314.75
7.3.100.0040.01115.05
7.3.90.0030.00714.93
7.3.80.0130.00014.86
7.3.70.0030.00614.89
7.3.60.0040.01115.05
7.3.50.0120.00014.89
7.3.40.0090.00914.75
7.3.30.0070.00714.62
7.3.20.0130.00017.04
7.3.10.0040.00416.81
7.3.00.0000.00916.74
7.2.330.0080.00816.71
7.2.320.0110.00716.86
7.2.310.0120.01216.82
7.2.300.0040.01416.89
7.2.290.0060.01016.64
7.2.250.0070.01014.90
7.2.240.0100.00714.80
7.2.230.0070.00715.09
7.2.220.0060.00615.35
7.2.210.0140.00015.11
7.2.200.0070.00315.39
7.2.190.0040.01115.11
7.2.180.0060.01215.02
7.2.170.0030.01615.21
7.2.00.0080.00819.27
7.1.330.0040.01215.85
7.1.320.0070.00315.63
7.1.310.0090.00615.92
7.1.300.0070.00715.98
7.1.290.0070.00715.72
7.1.280.0090.00816.00
7.1.270.0040.01115.93
7.1.260.0030.00715.71
7.1.100.0000.01118.41
7.1.70.0030.01317.42
7.1.60.0060.01919.40
7.1.50.0090.01217.20
7.1.00.0030.07722.46
7.0.200.0000.01016.97
7.0.140.0100.07022.04
7.0.60.0130.07019.92
7.0.50.0070.08017.83
7.0.40.0030.04720.00
7.0.30.0230.04320.11
7.0.20.0270.08320.33
7.0.10.0130.07720.20
7.0.00.0000.07020.17
5.6.280.0030.07320.92
5.6.210.0030.08020.54
5.6.200.0000.05018.13
5.6.190.0130.07020.32
5.6.180.0400.05720.57
5.6.170.0230.04720.37
5.6.160.0070.08320.44
5.6.150.0100.03318.17
5.6.140.0100.07318.09
5.6.130.0030.04018.08
5.6.120.0030.06721.05
5.6.110.0200.07321.14
5.6.100.0070.08720.97
5.6.90.0070.08321.10
5.6.80.0070.07020.28
5.5.350.0000.05720.46
5.5.340.0100.08017.88
5.5.330.0030.05320.12
5.5.320.0370.06320.51
5.5.310.0200.04020.32
5.5.300.0100.07317.92
5.5.290.0000.07317.90
5.5.280.0030.05720.89
5.5.270.0000.07320.79
5.5.260.0030.09320.64
5.5.250.0030.09020.68
5.5.240.0270.07320.06
5.4.450.0170.03719.14
5.4.440.0130.04019.20
5.4.430.0230.03719.11
5.4.420.0130.04319.41
5.4.410.0130.04019.29
5.4.400.0130.03718.79
5.4.390.0230.03318.80
5.4.380.0130.04319.13
5.4.370.0100.04018.93
5.4.360.0200.03019.06
5.4.350.0230.06019.09
5.4.340.0300.06019.08
5.4.320.0230.06019.25
5.4.310.0230.06319.09
5.4.300.0200.04718.88
5.4.290.0200.07719.25
5.4.280.0300.07018.91
5.4.270.0230.06319.16
5.4.260.0300.07019.24
5.4.250.0230.07319.05
5.4.240.0370.05319.23
5.4.230.0230.05719.21
5.4.220.0230.07319.07
5.4.210.0300.07018.88
5.4.200.0230.07719.08
5.4.190.0200.05319.13
5.4.180.0130.04318.79
5.4.170.0270.07019.03
5.4.160.0300.06018.78
5.4.150.0200.03718.80
5.4.140.0230.03316.33
5.4.130.0370.06016.54
5.4.120.0230.06716.45
5.4.110.0200.05716.34
5.4.100.0300.04716.39
5.4.90.0200.05016.21
5.4.80.0200.07316.38
5.4.70.0230.06716.21
5.4.60.0230.06716.20
5.4.50.0230.07016.36
5.4.40.0230.07316.36
5.4.30.0230.04316.03
5.4.20.0200.07016.28
5.4.10.0270.07016.40
5.4.00.0270.06315.79
5.3.290.0230.07714.71
5.3.280.0230.04014.45
5.3.270.0330.06014.46
5.3.260.0200.07314.55
5.3.250.0230.06014.58
5.3.240.0230.03714.55
5.3.230.0200.06714.58
5.3.220.0230.07314.41
5.3.210.0300.06014.50
5.3.200.0230.06714.44
5.3.190.0200.06014.51
5.3.180.0170.06014.44
5.3.170.0230.07014.53
5.3.160.0270.06314.40
5.3.150.0230.06714.41
5.3.140.0170.07714.43
5.3.130.0170.05714.40
5.3.120.0200.04014.39
5.3.110.0230.07014.49
5.3.100.0300.06013.99
5.3.90.0230.07013.95
5.3.80.0230.06713.81
5.3.70.0130.06013.92
5.3.60.0170.05013.85
5.3.50.0270.06313.99
5.3.40.0230.06313.78
5.3.30.0270.05713.89
5.3.20.0300.04713.64
5.3.10.0230.05013.50
5.3.00.0200.05713.73
5.2.170.0300.03712.64
5.2.160.0170.05712.64
5.2.150.0200.04712.64
5.2.140.0200.05312.64
5.2.130.0270.05712.64
5.2.120.0200.03012.64
5.2.110.0130.06012.64
5.2.100.0230.05312.64
5.2.90.0270.04312.64
5.2.80.0200.06012.64
5.2.70.0170.05712.64
5.2.60.0130.04312.64
5.2.50.0270.06012.64
5.2.40.0200.03712.64
5.2.30.0130.05012.64
5.2.20.0200.04312.64
5.2.10.0270.03712.64
5.2.00.0200.05312.64
5.1.60.0070.06012.64
5.1.50.0100.05312.64
5.1.40.0200.04712.64
5.1.30.0170.05712.64
5.1.20.0070.04312.64
5.1.10.0170.04712.64
5.1.00.0170.05012.64
5.0.50.0100.04712.64
5.0.40.0070.03012.64
5.0.30.0070.06012.64
5.0.20.0100.03712.64
5.0.10.0170.03712.64
5.0.00.0070.05312.64
4.4.90.0070.03312.64
4.4.80.0170.02712.64
4.4.70.0100.03312.64
4.4.60.0130.03012.64
4.4.50.0100.02712.64
4.4.40.0100.04712.64
4.4.30.0130.02312.64
4.4.20.0100.02712.64
4.4.10.0130.02712.64
4.4.00.0130.04312.64
4.3.110.0030.04012.64
4.3.100.0130.03312.64
4.3.90.0100.03012.64
4.3.80.0130.04712.64
4.3.70.0070.03712.64
4.3.60.0030.03712.64
4.3.50.0070.02712.64
4.3.40.0100.03712.64
4.3.30.0070.03312.64
4.3.20.0030.03712.64
4.3.10.0070.03312.64
4.3.00.0100.02712.64

preferences:
38.1 ms | 401 KiB | 5 Q