3v4l.org

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

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.0120.00316.75
8.3.50.0250.00823.01
8.3.40.0180.00018.76
8.3.30.0110.00419.18
8.3.20.0080.00020.20
8.3.10.0080.00023.64
8.3.00.0090.00019.50
8.2.180.0100.01016.75
8.2.170.0110.00422.96
8.2.160.0120.00320.29
8.2.150.0000.00924.18
8.2.140.0020.00524.66
8.2.130.0110.00726.16
8.2.120.0040.00421.20
8.2.110.0050.00522.09
8.2.100.0040.00819.89
8.2.90.0000.00819.20
8.2.80.0030.00517.97
8.2.70.0030.00617.88
8.2.60.0040.00418.16
8.2.50.0000.00918.07
8.2.40.0080.00018.05
8.2.30.0000.01018.03
8.2.20.0040.00417.97
8.2.10.0000.00718.21
8.2.00.0000.00717.90
8.1.280.0110.00625.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.97
8.1.230.0070.00419.24
8.1.220.0050.00317.75
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0000.00822.04
8.1.150.0050.00318.86
8.1.140.0000.00717.60
8.1.130.0030.00317.63
8.1.120.0020.00517.57
8.1.110.0030.00717.65
8.1.100.0050.00217.59
8.1.90.0040.00417.64
8.1.80.0040.00417.66
8.1.70.0030.00317.57
8.1.60.0030.00617.70
8.1.50.0040.00417.66
8.1.40.0000.00817.55
8.1.30.0050.00317.76
8.1.20.0050.00317.82
8.1.10.0000.00817.72
8.1.00.0060.00317.62
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0040.00417.29
8.0.260.0000.00816.95
8.0.250.0030.00317.07
8.0.240.0080.00016.98
8.0.230.0040.00417.14
8.0.220.0000.00717.06
8.0.210.0000.00717.05
8.0.200.0060.00017.08
8.0.190.0000.00717.14
8.0.180.0000.00817.09
8.0.170.0040.00417.05
8.0.160.0000.00717.06
8.0.150.0000.00816.96
8.0.140.0000.00816.89
8.0.130.0000.00613.55
8.0.120.0000.00816.99
8.0.110.0040.00416.94
8.0.100.0000.00717.01
8.0.90.0040.00417.10
8.0.80.0060.00916.98
8.0.70.0000.00816.95
8.0.60.0000.00716.82
8.0.50.0000.00816.91
8.0.30.0090.01416.97
8.0.20.0100.01317.40
8.0.10.0040.00417.12
8.0.00.0080.01116.73
7.4.330.0050.00015.18
7.4.320.0030.00316.73
7.4.300.0060.00016.73
7.4.290.0050.00316.64
7.4.280.0000.00816.77
7.4.270.0030.00416.86
7.4.260.0040.00416.66
7.4.250.0030.00616.69
7.4.240.0050.00216.75
7.4.230.0000.00716.75
7.4.220.0120.01516.89
7.4.210.0040.01016.71
7.4.200.0000.00816.80
7.4.160.0070.01816.61
7.4.150.0030.01617.40
7.4.140.0120.00517.86
7.4.130.0070.01216.62
7.4.120.0120.00816.82
7.4.110.0110.00716.47
7.4.100.0050.01916.57
7.4.90.0100.00716.94
7.4.80.0120.01419.39
7.4.70.0140.01016.64
7.4.60.0110.00616.68
7.4.50.0090.00016.67
7.4.40.0150.00616.79
7.4.30.0130.00316.75
7.4.00.0080.00415.02
7.3.330.0060.00013.35
7.3.320.0000.00613.36
7.3.310.0040.00416.43
7.3.300.0040.00416.48
7.3.290.0070.01316.50
7.3.280.0080.00816.49
7.3.270.0060.01217.40
7.3.260.0090.01616.79
7.3.250.0090.00916.52
7.3.240.0090.00916.67
7.3.230.0110.00616.63
7.3.210.0070.01016.52
7.3.200.0120.01119.39
7.3.190.0080.00816.68
7.3.180.0060.00916.51
7.3.170.0180.01216.54
7.3.160.0100.00716.46
7.3.120.0130.00315.31
7.3.110.0090.00915.20
7.3.100.0100.00715.22
7.3.90.0100.01015.11
7.3.80.0040.00715.01
7.3.70.0080.00414.81
7.3.60.0060.00315.09
7.3.50.0030.00714.68
7.3.40.0030.01215.07
7.3.30.0030.00615.07
7.3.20.0070.00316.97
7.3.10.0060.00316.73
7.3.00.0090.00616.94
7.2.330.0070.01116.79
7.2.320.0070.01316.80
7.2.310.0130.00716.84
7.2.300.0100.01316.95
7.2.290.0090.01216.82
7.2.250.0140.00415.26
7.2.240.0030.01715.37
7.2.230.0090.00915.01
7.2.220.0060.00615.27
7.2.210.0100.00315.06
7.2.200.0090.00015.38
7.2.190.0030.00615.47
7.2.180.0000.00915.11
7.2.170.0070.00715.24
7.2.60.0100.00317.27
7.2.00.0060.00919.73
7.1.330.0040.01115.98
7.1.320.0100.00615.97
7.1.310.0100.00616.00
7.1.300.0100.00316.15
7.1.290.0100.00316.04
7.1.280.0130.00315.79
7.1.270.0100.00716.09
7.1.260.0030.01015.73
7.1.200.0140.00416.01
7.1.100.0000.01618.45
7.1.70.0000.00717.14
7.1.60.0120.00919.40
7.1.50.0130.00317.19
7.1.00.0100.07022.45
7.0.200.0000.01016.96
7.0.140.0030.07322.05
7.0.60.0330.07320.04
7.0.50.0000.05717.82
7.0.40.0130.05320.34
7.0.30.0370.06720.02
7.0.20.0200.03720.35
7.0.10.0070.09320.01
7.0.00.0130.07320.10
5.6.280.0000.07721.02
5.6.210.0100.06720.64
5.6.200.0070.08318.23
5.6.190.0030.04320.41
5.6.180.0370.04720.67
5.6.170.0270.08020.48
5.6.160.0130.08320.38
5.6.150.0070.08318.21
5.6.140.0130.07318.17
5.6.130.0130.04318.16
5.6.120.0000.06321.11
5.6.110.0130.03321.00
5.6.100.0100.08721.13
5.6.90.0000.07321.03
5.6.80.0000.06020.40
5.5.350.0170.08720.43
5.5.340.0030.05017.88
5.5.330.0200.07020.19
5.5.320.0330.06720.41
5.5.310.0130.05320.21
5.5.300.0070.05717.88
5.5.290.0100.05317.92
5.5.280.0030.07020.77
5.5.270.0130.07320.76
5.5.260.0000.04320.86
5.5.250.0100.07320.61
5.5.240.0100.07720.07
5.4.450.3600.04019.50
5.4.440.3830.04319.49
5.4.430.4130.04019.24
5.4.420.4700.03719.49
5.4.410.4030.03719.08
5.4.400.3700.04019.17
5.4.390.3700.04018.93
5.4.380.3130.03719.04
5.4.370.3470.03318.97
5.4.360.4000.03718.97
5.4.350.3870.04318.93
5.4.340.0070.08319.13
5.4.320.4130.04019.15
5.4.310.4600.04019.08
5.4.300.4170.03718.96
5.4.290.4700.03719.13
5.4.280.4070.03719.19
5.4.270.3870.04019.15
5.4.260.3630.04019.25
5.4.250.4230.03019.12
5.4.240.0000.04319.05
5.4.230.1530.06319.07
5.4.220.3630.03719.12
5.4.210.3730.04319.04
5.4.200.3670.04319.07
5.4.190.4030.04019.14
5.4.180.3930.03319.16
5.4.170.2000.03319.12
5.4.160.2330.04019.02
5.4.150.3170.04019.06
5.4.140.3600.04016.23
5.4.130.3830.03716.42
5.4.120.3300.04016.22
5.4.110.3600.04316.25
5.4.100.3300.03016.45
5.4.90.3700.03016.39
5.4.80.3570.03016.37
5.4.70.3670.02716.34
5.4.60.3800.03316.20
5.4.50.4200.03716.11
5.4.40.3700.03016.29
5.4.30.3670.03316.46
5.4.20.3700.03316.34
5.4.10.3300.03716.33
5.4.00.3570.04015.77
5.3.290.3870.04314.59
5.3.280.4630.03714.47
5.3.270.3970.03714.54
5.3.260.2230.03714.43
5.3.250.2700.04014.62
5.3.240.4070.04314.54
5.3.230.3700.04314.61
5.3.220.3270.03714.36
5.3.210.3470.04014.44
5.3.200.2970.04014.50
5.3.190.3330.04014.53
5.3.180.3700.03014.53
5.3.170.3670.03714.53
5.3.160.3530.03014.49
5.3.150.3070.03314.35
5.3.140.3830.04014.66
5.3.130.3500.04314.34
5.3.120.3470.04314.33
5.3.110.3330.03714.47
5.3.100.4070.03313.96
5.3.90.3930.03714.11
5.3.80.4000.04014.11
5.3.70.4470.03313.98
5.3.60.4400.03713.94
5.3.50.4470.03713.77
5.3.40.4700.03713.90
5.3.30.4200.04713.84
5.3.20.4100.05313.51
5.3.10.4230.03713.63
5.3.00.4170.03713.43
5.2.170.3670.03011.23
5.2.160.3870.03311.30
5.2.150.3500.02711.13
5.2.140.3130.03311.13
5.2.130.3470.03311.09
5.2.120.3470.03711.09
5.2.110.3230.03011.09
5.2.100.3330.03311.25
5.2.90.3330.03011.11
5.2.80.3130.02711.10
5.2.70.3100.03310.98
5.2.60.3100.02711.04
5.2.50.3570.03310.98
5.2.40.3230.03711.15
5.2.30.3230.03310.94
5.2.20.2870.02710.93
5.2.10.2800.03310.81
5.2.00.2630.03010.57
5.1.60.2530.0239.95
5.1.50.2530.02010.05
5.1.40.2670.0239.97
5.1.30.2530.02710.38
5.1.20.2630.03010.30
5.1.10.2800.03310.05
5.1.00.3300.0179.97
5.0.50.1770.0138.64
5.0.40.1530.0238.38
5.0.30.1400.0338.28
5.0.20.1500.0208.21
5.0.10.1470.0178.12
5.0.00.1470.0378.06
4.4.90.1670.0176.25
4.4.80.1630.0176.25
4.4.70.1470.0136.25
4.4.60.1430.0176.25
4.4.50.1470.0136.25
4.4.40.1530.0276.25
4.4.30.1170.0176.25
4.4.20.1630.0176.25
4.4.10.1470.0176.25
4.4.00.1630.0276.25
4.3.110.1400.0136.25
4.3.100.1170.0176.25
4.3.90.1230.0136.25
4.3.80.1500.0276.25
4.3.70.1570.0136.25
4.3.60.1230.0136.25
4.3.50.1270.0176.25
4.3.40.1270.0236.25
4.3.30.0800.0276.25
4.3.20.0970.0206.25
4.3.10.0970.0236.25
4.3.00.0770.0176.25

preferences:
44.39 ms | 401 KiB | 5 Q