3v4l.org

run code in 300+ PHP versions simultaneously
<?php // your code goes here $html = '<html><body link="#0066FF" vlink="#6633CC" bgcolor="#4CDCFF" style=\'margin:0\'>asddasdas</body></html>'; echo preg_replace('#<body [^>]+>#', "null", $html);

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.75
8.3.50.0070.00918.23
8.3.40.0110.00418.79
8.3.30.0150.00019.02
8.3.20.0080.00018.91
8.3.10.0090.00020.79
8.3.00.0070.00319.50
8.2.180.0140.00416.75
8.2.170.0090.00622.96
8.2.160.0100.00618.99
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0060.00320.74
8.2.110.0090.00021.04
8.2.100.0070.00317.91
8.2.90.0060.00319.53
8.2.80.0070.00018.98
8.2.70.0040.00417.47
8.2.60.0040.00418.03
8.2.50.0070.00418.07
8.2.40.0040.00420.07
8.2.30.0040.00417.99
8.2.20.0060.00317.72
8.2.10.0040.00417.64
8.2.00.0020.00517.64
8.1.280.0150.00325.92
8.1.270.0050.00323.99
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0100.00022.52
8.1.230.0070.00420.93
8.1.220.0090.00017.74
8.1.210.0060.00618.77
8.1.200.0030.00617.50
8.1.190.0000.00817.40
8.1.180.0030.00518.10
8.1.170.0040.00418.84
8.1.160.0000.00818.84
8.1.150.0070.00018.67
8.1.140.0040.00417.59
8.1.130.0030.00317.84
8.1.120.0040.00417.52
8.1.110.0000.00717.47
8.1.100.0000.00717.42
8.1.90.0040.00417.50
8.1.80.0070.00017.53
8.1.70.0050.00317.44
8.1.60.0060.00317.67
8.1.50.0040.00417.46
8.1.40.0000.00817.58
8.1.30.0080.00017.63
8.1.20.0080.00017.67
8.1.10.0030.00617.56
8.1.00.0040.00417.61
8.0.300.0050.00319.93
8.0.290.0070.00016.88
8.0.280.0030.00318.45
8.0.270.0040.00417.27
8.0.260.0030.00316.95
8.0.250.0070.00017.01
8.0.240.0000.00717.08
8.0.230.0000.00717.02
8.0.220.0000.00816.84
8.0.210.0070.00016.88
8.0.200.0030.00316.95
8.0.190.0040.00417.02
8.0.180.0040.00417.00
8.0.170.0060.00316.91
8.0.160.0080.00017.08
8.0.150.0030.00616.86
8.0.140.0000.00816.89
8.0.130.0000.00513.35
8.0.120.0040.00416.82
8.0.110.0000.00717.03
8.0.100.0070.00016.93
8.0.90.0040.00416.78
8.0.80.0070.00816.97
8.0.70.0080.00016.91
8.0.60.0040.00416.87
8.0.50.0080.00016.98
8.0.30.0060.00917.02
8.0.20.0100.01217.17
8.0.10.0000.00716.94
8.0.00.0140.00817.04
7.4.330.0000.00613.14
7.4.320.0000.00616.54
7.4.300.0030.00316.55
7.4.290.0070.00016.69
7.4.280.0000.00816.78
7.4.270.0000.00716.54
7.4.260.0060.00013.46
7.4.250.0000.00716.53
7.4.240.0000.00816.66
7.4.230.0040.00416.58
7.4.220.0110.00916.73
7.4.210.0060.00916.77
7.4.200.0000.00716.53
7.4.190.0000.00716.59
7.4.160.0060.01016.67
7.4.150.0070.01116.74
7.4.140.0100.01016.54
7.4.130.0140.01416.70
7.4.120.0100.00716.66
7.4.110.0120.00616.38
7.4.100.0070.01016.68
7.4.90.0060.01616.45
7.4.80.0180.00016.46
7.4.70.0110.00716.62
7.4.60.0090.00616.75
7.4.50.0030.00316.67
7.4.40.0090.00616.74
7.4.30.0060.01116.64
7.4.00.0110.00414.72
7.3.330.0070.00013.04
7.3.320.0060.00013.09
7.3.310.0030.00616.15
7.3.300.0040.00416.34
7.3.290.0050.01016.28
7.3.280.0110.00816.34
7.3.270.0130.01016.33
7.3.260.0100.00716.57
7.3.250.0090.00816.36
7.3.240.0180.00316.73
7.3.230.0100.00716.60
7.3.210.0140.00616.49
7.3.200.0110.01219.39
7.3.190.0040.01816.61
7.3.180.0130.00316.38
7.3.170.0050.01116.41
7.3.160.0070.01016.40
7.3.120.0090.00314.82
7.3.10.0120.00316.85
7.3.00.0070.00316.62
7.2.330.0030.01916.84
7.2.320.0180.00716.51
7.2.310.0150.00916.68
7.2.300.0070.01016.77
7.2.290.0220.00016.59
7.2.130.0060.00317.04
7.2.120.0080.00316.97
7.2.110.0030.00816.67
7.2.100.0030.00717.07
7.2.90.0100.00316.97
7.2.80.0090.00616.98
7.2.70.0080.00416.77
7.2.60.0090.00616.95
7.2.50.0040.01116.80
7.2.40.0040.00816.70
7.2.30.0090.00316.65
7.2.20.0000.01816.99
7.2.10.0000.01116.93
7.2.00.0080.00818.24
7.1.250.0070.00715.60
7.1.200.0070.00715.86
7.1.100.0080.00618.13
7.1.70.0030.00717.29
7.1.60.0120.01219.31
7.1.50.0000.01917.04
7.1.00.0100.06322.38
7.0.200.0100.00716.89
7.0.140.0070.07021.98
7.0.120.0070.06322.03
7.0.60.0100.08319.82
7.0.50.0030.05317.80
7.0.40.0030.04319.92
7.0.30.0100.05320.30
7.0.20.0200.04320.14
7.0.10.0300.06320.02
7.0.00.0070.06020.14
5.6.280.0030.07321.12
5.6.210.0030.04720.48
5.6.200.0070.08018.19
5.6.190.0030.06720.61
5.6.180.0300.07320.56
5.6.170.0270.08320.49
5.6.160.0130.06320.51
5.6.150.0130.07018.18
5.6.140.0030.04018.17
5.6.130.0070.05018.21
5.6.120.0100.04021.04
5.6.110.0030.09021.08
5.6.100.0000.05321.03
5.6.90.0100.07021.12
5.6.80.0070.08020.37
5.6.70.0230.08020.40
5.5.350.0300.04720.30
5.5.340.0100.04717.92
5.5.330.0070.08020.15
5.5.320.0200.06320.41
5.5.310.0330.06720.18
5.5.300.0000.04017.95
5.5.290.0070.07717.96
5.5.280.0230.06720.77
5.5.270.0100.08320.83
5.5.260.0170.07020.75
5.5.250.0170.06720.57
5.5.240.0130.05020.25
5.4.450.0170.07019.25
5.4.440.0030.06319.47
5.4.430.0100.05319.11
5.4.420.0070.04319.40
5.4.410.0070.08019.02
5.4.400.0030.04318.79
5.4.390.0070.03719.14
5.4.380.0130.04019.18
5.4.370.0130.06018.94
5.4.360.0030.08019.14
5.4.350.0200.04019.18
5.4.340.0130.07319.09
5.4.320.0030.04719.07
5.4.310.0030.08019.09
5.4.300.0100.06319.18
5.4.290.0070.08019.07
5.4.280.0070.07719.14
5.4.270.0100.05319.15
5.4.260.0070.07719.13
5.4.250.0130.06319.16
5.4.240.0070.07319.15
5.4.230.0100.07018.91
5.4.220.0000.06319.18
5.4.210.0030.04019.17
5.4.200.0000.04319.02
5.4.190.0100.04019.13
5.4.180.0030.05719.07
5.4.170.0100.07319.16
5.4.160.0000.08018.76
5.4.150.0100.07719.11
5.4.140.0170.06016.25
5.4.130.0030.06316.49
5.4.120.0070.06716.49
5.4.110.0100.06316.24
5.4.100.0070.07016.32
5.4.90.0130.06716.59
5.4.80.0030.07316.25
5.4.70.0100.07316.22
5.4.60.0030.04316.41
5.4.50.0070.05316.32
5.4.40.0070.04316.33
5.4.30.0070.04316.17
5.4.20.0130.06316.38
5.4.10.0000.08316.27
5.4.00.0030.06315.80
5.3.290.0100.06014.56
5.3.280.0070.07714.52
5.3.270.0070.03714.39
5.3.260.0030.08314.55
5.3.250.0000.07714.53
5.3.240.0100.07014.52
5.3.230.0070.07314.38
5.3.220.0070.07314.49
5.3.210.0030.05014.47
5.3.200.0130.04714.51
5.3.190.0070.07014.50
5.3.180.0130.07014.47
5.3.170.0030.06314.52
5.3.160.0000.08014.51
5.3.150.0100.07314.53
5.3.140.0000.04014.43
5.3.130.0070.07014.50
5.3.120.0030.07714.56
5.3.110.0130.07314.47
5.3.100.0000.05013.96
5.3.90.0100.07313.96
5.3.80.0070.05313.96
5.3.70.0000.04313.94
5.3.60.0030.07313.93
5.3.50.0030.04713.91
5.3.40.0070.07313.77
5.3.30.0130.04713.85
5.3.20.0070.05313.52
5.3.10.0070.07313.67
5.3.00.0070.07013.60
5.2.170.0030.06011.05
5.2.160.0000.04011.11
5.2.150.0000.03311.11
5.2.140.0070.04010.98
5.2.130.0100.05711.10
5.2.120.0100.03711.08
5.2.110.0000.06311.00
5.2.100.0030.05311.08
5.2.90.0070.05011.06
5.2.80.0030.06311.24
5.2.70.0070.03711.09
5.2.60.0030.03011.01
5.2.50.0100.04310.95
5.2.40.0030.05310.89
5.2.30.0070.04010.79
5.2.20.0030.06710.78
5.2.10.0130.03710.86
5.2.00.0100.03310.56
5.1.60.0030.0379.99
5.1.50.0070.05310.08
5.1.40.0070.0539.92
5.1.30.0100.05010.36
5.1.20.0000.05010.25
5.1.10.0030.0579.99
5.1.00.0070.05710.09
5.0.50.0070.0308.55
5.0.40.0000.0238.45
5.0.30.0000.0308.21
5.0.20.0030.0208.10
5.0.10.0070.0138.13
5.0.00.0000.0308.10
4.4.90.0030.0177.88
4.4.80.0070.0277.88
4.4.70.0070.0207.88
4.4.60.0170.0177.88
4.4.50.0000.0277.88
4.4.40.0030.0477.88
4.4.30.0000.0337.88
4.4.20.0030.0207.88
4.4.10.0070.0307.88
4.4.00.0030.0277.88
4.3.110.0000.0177.88
4.3.100.0030.0137.88
4.3.90.0000.0137.88
4.3.80.0000.0277.88
4.3.70.0000.0177.88
4.3.60.0000.0177.88
4.3.50.0000.0137.88
4.3.40.0000.0237.88
4.3.30.0000.0137.88
4.3.20.0030.0177.88
4.3.10.0000.0177.88
4.3.00.0000.0177.88

preferences:
40.6 ms | 400 KiB | 5 Q