3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<test1>\nDies ist ein Test</test1>\n<test2>\nUsw. usf.</test2>";preg_match_all("/<([\w]+)[^>]*>(.*?)<\/\1>/", $html, $treffer, PREG_SET_ORDER);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.0110.00416.63
8.3.50.0130.00823.00
8.3.40.0030.01218.71
8.3.30.0070.00719.14
8.3.20.0080.00020.25
8.3.10.0000.00823.67
8.3.00.0050.00319.38
8.2.180.0080.00816.63
8.2.170.0070.00722.96
8.2.160.0130.00020.38
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0030.00521.23
8.2.110.0070.00319.39
8.2.100.0040.00817.96
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0050.00317.60
8.2.60.0000.00819.34
8.2.50.0000.00718.16
8.2.40.0000.00820.64
8.2.30.0000.00819.37
8.2.20.0030.00617.72
8.2.10.0000.00818.09
8.2.00.0000.00817.76
8.1.280.0030.01025.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.58
8.1.230.0080.00317.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.77
8.1.160.0040.00418.82
8.1.150.0050.00320.21
8.1.140.0000.00717.64
8.1.130.0000.00817.78
8.1.120.0000.00817.61
8.1.110.0100.00017.59
8.1.100.0040.00417.60
8.1.90.0030.00317.60
8.1.80.0000.00717.64
8.1.70.0000.00817.57
8.1.60.0040.00417.77
8.1.50.0040.00417.54
8.1.40.0040.00417.67
8.1.30.0000.00917.74
8.1.20.0000.00817.69
8.1.10.0040.00417.52
8.1.00.0000.00817.61
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0070.00018.48
8.0.270.0000.00717.33
8.0.260.0000.00717.19
8.0.250.0000.00817.07
8.0.240.0000.00817.08
8.0.230.0000.00817.02
8.0.220.0030.00317.00
8.0.210.0030.00317.07
8.0.200.0050.00317.11
8.0.190.0030.00517.07
8.0.180.0040.00417.09
8.0.170.0090.00017.11
8.0.160.0050.00216.99
8.0.150.0030.00317.00
8.0.140.0050.00517.01
8.0.130.0050.00013.47
8.0.120.0000.00816.89
8.0.110.0000.00717.04
8.0.100.0040.00416.99
8.0.90.0040.00416.95
8.0.80.0060.01517.08
8.0.70.0040.00417.09
8.0.60.0040.00417.08
8.0.50.0040.00416.98
8.0.30.0160.00517.13
8.0.20.0090.01417.43
8.0.10.0070.00017.04
8.0.00.0060.01116.99
7.4.330.0050.00015.12
7.4.320.0060.00016.62
7.4.300.0030.00316.71
7.4.290.0020.00516.82
7.4.280.0000.00716.84
7.4.270.0040.00416.71
7.4.260.0000.00816.63
7.4.250.0000.00716.61
7.4.240.0040.00416.75
7.4.230.0000.00716.64
7.4.220.0090.00916.79
7.4.210.0090.00616.84
7.4.200.0030.00516.63
7.4.160.0070.01416.63
7.4.150.0120.01217.40
7.4.140.0130.01017.86
7.4.130.0080.00916.69
7.4.120.0080.01116.72
7.4.110.0000.01716.66
7.4.100.0130.00316.58
7.4.90.0140.00316.62
7.4.80.0130.01019.39
7.4.70.0140.00616.77
7.4.60.0080.00816.57
7.4.50.0030.00316.43
7.4.40.0060.01216.87
7.4.30.0070.01016.61
7.4.00.0050.01215.15
7.3.330.0000.00613.37
7.3.320.0000.00513.22
7.3.310.0000.00716.25
7.3.300.0040.00416.39
7.3.290.0100.01016.38
7.3.280.0050.01016.42
7.3.270.0060.01217.40
7.3.260.0150.00716.92
7.3.250.0080.01116.48
7.3.240.0120.00616.79
7.3.230.0030.01416.44
7.3.210.0150.00016.59
7.3.200.0100.00719.39
7.3.190.0100.00716.75
7.3.180.0080.00816.63
7.3.170.0100.00516.49
7.3.160.0090.00616.76
7.3.120.0100.00714.92
7.3.110.0130.00314.73
7.3.100.0140.00415.05
7.3.90.0040.00814.68
7.3.80.0070.00714.78
7.3.70.0080.00414.96
7.3.60.0030.00915.01
7.3.50.0000.01014.75
7.3.40.0080.00414.95
7.3.30.0040.01114.98
7.3.20.0060.00316.54
7.3.10.0070.00316.79
7.3.00.0030.01316.79
7.2.330.0070.01016.73
7.2.320.0140.00816.73
7.2.310.0070.01716.70
7.2.300.0120.01216.74
7.2.290.0110.00516.77
7.2.250.0030.01515.16
7.2.240.0060.01315.26
7.2.230.0110.00415.31
7.2.220.0000.01615.31
7.2.210.0040.00915.29
7.2.200.0030.00915.10
7.2.190.0000.00915.30
7.2.180.0090.00015.21
7.2.170.0000.01014.79
7.2.00.0160.00819.27
7.1.330.0070.00716.14
7.1.320.0030.00616.03
7.1.310.0000.01615.60
7.1.300.0060.00616.04
7.1.290.0070.00716.03
7.1.280.0070.00715.83
7.1.270.0040.00715.68
7.1.260.0080.00815.94
7.1.100.0630.00716.31
7.1.70.0070.00717.32
7.1.60.0090.00417.58
7.1.50.0150.00717.22
7.1.00.0100.06722.37
7.0.200.0060.00917.02
7.0.140.0000.07721.98
7.0.60.0100.07019.94
7.0.50.0000.09317.88
7.0.40.0130.03320.23
7.0.30.0270.08020.31
7.0.20.0300.08320.14
7.0.10.0130.03720.01
7.0.00.0070.07320.22
5.6.280.0100.06321.06
5.6.210.0100.08320.76
5.6.200.0130.04718.09
5.6.190.0130.03320.67
5.6.180.0230.03720.62
5.6.170.0330.07320.41
5.6.160.0100.06720.49
5.6.150.0100.07018.09
5.6.140.0030.08318.12
5.6.130.0030.08718.14
5.6.120.0170.07320.98
5.6.110.0130.03020.96
5.6.100.0070.07321.04
5.6.90.0100.07721.13
5.6.80.0030.08720.34
5.5.350.0030.08720.46
5.5.340.0070.08317.88
5.5.330.0100.03720.47
5.5.320.0300.05320.34
5.5.310.0330.07020.39
5.5.300.0000.04317.89
5.5.290.0000.06017.89
5.5.280.0100.04720.87
5.5.270.0030.04020.95
5.5.260.0030.08020.76
5.5.250.0070.07720.60
5.5.240.0300.06720.27
5.4.450.0300.04019.26
5.4.440.0330.04719.21
5.4.430.0400.04019.24
5.4.420.0470.03719.48
5.4.410.0230.04319.29
5.4.400.0370.03718.78
5.4.390.0200.03719.06
5.4.380.0870.05018.46
5.4.370.0900.05318.48
5.4.360.0800.05318.53
5.4.350.0830.05718.52
5.4.340.0970.05018.48
5.4.320.0040.03812.45
5.4.310.0030.04112.45
5.4.300.0050.03712.46
5.4.290.0070.03812.45
5.4.280.0100.03112.35
5.4.270.0090.03212.35
5.4.260.0050.04212.35
5.4.250.0050.03812.35
5.4.240.0060.03512.35
5.4.230.0050.03812.34
5.4.220.0100.03312.34
5.4.210.0050.03612.34
5.4.200.0040.04112.34
5.4.190.0060.03512.34
5.4.180.0060.03612.34
5.4.170.0060.03812.35
5.4.160.0030.04012.35
5.4.150.0060.03612.34
5.4.140.0060.03712.03
5.4.130.0060.04012.01
5.4.120.0040.03911.97
5.4.110.0060.03811.97
5.4.100.0020.03911.97
5.4.90.0060.03711.96
5.4.80.0050.05411.96
5.4.70.0060.04011.96
5.4.60.0050.03511.96
5.4.50.0020.03811.96
5.4.40.0060.03411.95
5.4.30.0060.03511.95
5.4.20.0080.03311.95
5.4.10.0080.03311.95
5.4.00.0050.03611.44
5.3.290.0030.05012.80
5.3.280.0080.03512.71
5.3.270.0090.03612.72
5.3.260.0040.04012.72
5.3.250.0040.03912.72
5.3.240.0070.03612.72
5.3.230.0040.04512.71
5.3.220.0080.03612.68
5.3.210.0060.03912.68
5.3.200.0040.04512.68
5.3.190.0050.04512.68
5.3.180.0100.03512.67
5.3.170.0060.03712.67
5.3.160.0060.03612.68
5.3.150.0080.03512.67
5.3.140.0080.03512.66
5.3.130.0050.04112.66
5.3.120.0050.04012.65
5.3.110.0040.04012.66
5.3.100.0060.03712.12
5.3.90.0050.03812.08
5.3.80.0060.03612.08
5.3.70.0060.03612.07
5.3.60.0080.03412.06
5.3.50.0010.04212.00
5.3.40.0100.03312.00
5.3.30.0080.03611.95
5.3.20.0030.04111.73
5.3.10.0090.03511.70
5.3.00.0060.03511.70
5.2.170.0040.0319.18
5.2.160.0050.0289.19
5.2.150.0030.0329.19
5.2.140.0040.0319.19
5.2.130.0040.0299.15
5.2.120.0030.0299.15
5.2.110.0040.0299.15
5.2.100.0050.0289.15
5.2.90.0070.0289.15
5.2.80.0060.0349.14
5.2.70.0050.0309.14
5.2.60.0040.0319.10
5.2.50.0040.0309.07
5.2.40.0070.0339.05
5.2.30.0040.0329.03
5.2.20.0030.0319.02
5.2.10.0070.0268.92
5.2.00.0020.0338.77
5.1.60.0050.0238.06
5.1.50.0030.0258.05
5.1.40.0050.0238.04
5.1.30.0060.0288.39
5.1.20.0040.0268.41
5.1.10.0070.0278.13
5.1.00.0040.0368.14
5.0.50.0050.0226.61
5.0.40.0030.0236.48
5.0.30.0020.0336.29
5.0.20.0030.0206.26
5.0.10.0020.0216.24
5.0.00.0040.0306.23
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0000.0174.75
4.4.60.0040.0144.76
4.4.50.0070.0114.77
4.4.40.0030.0314.70
4.4.30.0030.0164.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0040.0234.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0000.0174.62
4.3.50.0020.0174.63
4.3.40.0030.0254.54
4.3.30.0030.0183.28
4.3.20.0030.0193.26
4.3.10.0030.0183.22
4.3.00.0130.01315.95

preferences:
48.3 ms | 401 KiB | 5 Q