3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META content="text/html; charset=windows-1251" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 11.00.9600.17105"> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <FONT size=2><DIV align=center> <TABLE borderColor=#0e0016 cellSpacing=2 borderColorDark=#ba0000 cellPadding=0 width=860 bgColor=#f5f5fa borderColorLight=#ba0000 border=0></TABLE> </BODY> </HTML>'; $body2 = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META content="text/html; charset=windows-1251" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 11.00.9600.17105"><STYLE></STYLE></HEAD><BODY bgColor=#ffffff><FONT size=2><BODY>test</BODY><DIV align=center><TABLE borderColor=#0e0016 cellSpacing=2 borderColorDark=#ba0000 cellPadding=0 width=860 bgColor=#f5f5fa borderColorLight=#ba0000 border=0></TABLE></BODY></HTML>'; $pattern = "#.*?(<body.*?>)?(<body.*?>.*?</body>).*#is"; preg_match($pattern, $body, $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.40.0140.00019.02
8.3.30.0080.00619.05
8.3.20.0000.00720.36
8.3.10.0040.00421.75
8.3.00.0030.00620.79
8.2.170.0070.01422.96
8.2.160.0030.01022.27
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00519.95
8.2.110.0030.00821.09
8.2.100.0070.00417.91
8.2.90.0000.00817.89
8.2.80.0000.00817.97
8.2.70.0060.00317.46
8.2.60.0040.00417.80
8.2.50.0000.00918.07
8.2.40.0060.00318.20
8.2.30.0000.00717.89
8.2.20.0000.00717.64
8.2.10.0000.00717.94
8.2.00.0000.00717.80
8.1.270.0050.00318.75
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.53
8.1.230.0110.00020.98
8.1.220.0030.00517.74
8.1.210.0000.00818.79
8.1.200.0110.00017.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00420.43
8.1.160.0040.00421.93
8.1.150.0050.00318.93
8.1.140.0050.00317.60
8.1.130.0000.00717.70
8.1.120.0000.00817.59
8.1.110.0040.00417.36
8.1.100.0070.00017.42
8.1.90.0070.00017.54
8.1.80.0000.00717.43
8.1.70.0000.01117.52
8.1.60.0040.00417.71
8.1.50.0060.00317.64
8.1.40.0000.00917.67
8.1.30.0000.00817.71
8.1.20.0030.00517.73
8.1.10.0000.00717.56
8.1.00.0040.00417.61
8.0.300.0040.00419.94
8.0.290.0040.00416.63
8.0.280.0030.00318.32
8.0.270.0000.00717.27
8.0.260.0000.00717.25
8.0.250.0000.00717.03
8.0.240.0000.00717.00
8.0.230.0030.00317.00
8.0.220.0040.00416.92
8.0.210.0000.00716.97
8.0.200.0060.00017.02
8.0.190.0000.00716.91
8.0.180.0000.00716.90
8.0.170.0040.00416.95
8.0.160.0070.00017.08
8.0.150.0030.00516.89
8.0.140.0070.00016.93
8.0.130.0000.00613.35
8.0.120.0030.00516.89
8.0.110.0030.00517.01
8.0.100.0040.00416.90
8.0.90.0070.00016.86
8.0.80.0150.00616.92
8.0.70.0000.00816.91
8.0.60.0000.00716.82
8.0.50.0050.00316.87
8.0.30.0160.00816.94
8.0.20.0120.00817.40
8.0.10.0000.00716.99
8.0.00.0060.01216.72
7.4.330.0050.00015.09
7.4.320.0000.00616.64
7.4.300.0040.00416.66
7.4.290.0030.00716.78
7.4.280.0040.00716.63
7.4.270.0080.00016.71
7.4.260.0040.00716.72
7.4.250.0080.00016.54
7.4.240.0060.00116.71
7.4.230.0030.00316.63
7.4.220.0140.00416.71
7.4.210.0070.00716.75
7.4.200.0050.00216.68
7.4.160.0030.01216.73
7.4.150.0070.01117.40
7.4.140.0100.01217.86
7.4.130.0080.00916.50
7.4.120.0070.01016.64
7.4.110.0180.00016.66
7.4.100.0110.01116.51
7.4.90.0080.00816.63
7.4.80.0170.00719.39
7.4.70.0030.01516.79
7.4.60.0120.00316.43
7.4.50.0000.00816.66
7.4.40.0060.01116.39
7.4.30.0110.00916.40
7.4.00.0100.00314.97
7.3.330.0030.00313.12
7.3.320.0000.00513.12
7.3.310.0030.00316.43
7.3.300.0070.00016.33
7.3.290.0050.01116.29
7.3.280.0040.01416.33
7.3.270.0100.00717.40
7.3.260.0170.00716.28
7.3.250.0090.01216.47
7.3.240.0060.01116.34
7.3.230.0120.01116.39
7.3.210.0120.01016.59
7.3.200.0200.00319.39
7.3.190.0120.00316.50
7.3.180.0090.00916.42
7.3.170.0130.00716.28
7.3.160.0120.00916.16
7.2.330.0200.00016.74
7.2.320.0030.01616.61
7.2.310.0070.01316.60
7.2.300.0100.00716.59
7.2.290.0090.00916.52
7.2.00.0060.00619.22
7.1.100.0060.00618.09
7.1.70.0040.00417.38
7.1.60.0030.02219.46
7.1.50.0120.00916.96
7.1.00.0070.07022.54
7.0.200.0690.00414.97
7.0.140.0070.04722.09
7.0.60.0200.07020.01
7.0.50.0170.06317.82
7.0.40.0070.08720.21
7.0.30.0170.05020.21
7.0.20.0230.04320.31
7.0.10.0130.06020.03
7.0.00.0070.03720.05
5.6.280.0030.07321.14
5.6.210.0170.06320.70
5.6.200.0130.03318.12
5.6.190.0000.07720.43
5.6.180.0470.06720.64
5.6.170.0170.04320.40
5.6.160.0100.07320.53
5.6.150.0000.04718.22
5.6.140.0030.08718.12
5.6.130.0030.04318.12
5.6.120.0030.04021.01
5.6.110.0200.07020.98
5.6.100.0100.08020.98
5.6.90.0170.08020.94
5.6.80.0070.05320.50
5.5.350.0200.04020.43
5.5.340.0000.05717.97
5.5.330.0100.04020.25
5.5.320.0000.08720.32
5.5.310.0530.05320.26
5.5.300.0030.08717.98
5.5.290.0030.07318.03
5.5.280.0100.03720.65
5.5.270.0200.07320.71
5.5.260.0070.09020.89
5.5.250.0070.07720.68
5.5.240.0230.02720.14
5.4.450.0530.05719.54
5.4.440.0830.06019.32
5.4.430.0970.05319.63
5.4.420.0030.06019.51
5.4.410.1170.05019.48
5.4.400.0170.07318.69
5.4.390.0300.06018.63
5.4.380.0100.06718.46
5.4.370.0230.06318.67
5.4.360.0170.07318.69
5.4.350.0170.07318.74
5.4.340.0130.06318.63
5.4.320.0200.05718.45
5.4.310.0230.06018.77
5.4.300.0230.07018.61
5.4.290.0200.07018.71
5.4.280.0130.07718.73
5.4.270.0270.06718.67
5.4.260.0130.07718.39
5.4.250.0230.07018.50
5.4.240.0130.08018.61
5.4.230.0200.06718.50
5.4.220.0100.08318.61
5.4.210.0170.05718.77
5.4.200.0200.04716.63
5.4.190.0100.06018.70
5.4.180.0170.05718.70
5.4.170.0100.06318.50
5.4.160.0270.04018.77
5.4.150.0200.05318.63
5.4.140.0100.06016.27
5.4.130.0230.06316.16
5.4.120.0170.07016.27
5.4.110.0170.07016.14
5.4.100.0200.07016.24
5.4.90.0200.07016.22
5.4.80.0200.06316.20
5.4.70.0200.07016.22
5.4.60.0100.07316.16
5.4.50.0170.07016.16
5.4.40.0270.06016.05
5.4.30.0300.05016.26
5.4.20.0270.06016.24
5.4.10.0200.06316.31
5.4.00.0170.06315.49
5.3.290.0330.05714.64
5.3.280.0170.05314.54
5.3.270.0170.05714.58
5.3.260.0300.05014.58
5.3.250.0170.06314.75
5.3.240.0130.05714.52
5.3.230.0170.05014.52
5.3.220.0130.05314.57
5.3.210.0300.04014.48
5.3.200.0170.05014.47
5.3.190.0070.06714.72
5.3.180.0200.04314.52
5.3.170.0070.05714.55
5.3.160.0300.04714.53
5.3.150.0200.06714.51
5.3.140.0200.04714.46
5.3.130.0100.06014.48
5.3.120.0170.05014.54
5.3.110.0100.06014.54
5.3.100.0070.06014.18
5.3.90.0100.06014.07
5.3.80.0200.06313.93
5.3.70.0230.06013.98
5.3.60.0200.06013.98
5.3.50.0200.06313.86
5.3.40.0200.06714.00
5.3.30.0200.04713.87
5.3.20.0170.05313.69
5.3.10.0200.04313.81
5.3.00.0830.06713.79
5.2.170.0070.06711.05
5.2.160.0070.04311.17
5.2.150.0130.04311.19
5.2.140.0130.05711.28
5.2.130.0130.04311.08
5.2.120.0170.04011.13
5.2.110.0200.03711.03
5.2.100.0070.04711.02
5.2.90.0100.06011.09
5.2.80.0070.06711.08
5.2.70.0100.06011.02
5.2.60.0170.05711.09
5.2.50.0070.06311.04
5.2.40.0030.06011.07
5.2.30.0170.05310.93
5.2.20.0100.05711.19
5.2.10.0130.05010.90
5.2.00.0130.05310.93
5.1.60.0070.0509.98
5.1.50.0170.0409.97
5.1.40.0200.04010.03
5.1.30.0170.04310.55
5.1.20.0070.05310.41
5.1.10.0100.04710.08
5.1.00.0130.05010.08
5.0.50.0170.0308.68
5.0.40.0000.0478.48
5.0.30.0100.0578.25
5.0.20.0130.0208.22
5.0.10.0030.0308.24
5.0.00.0030.0438.29
4.4.90.0030.0236.76
4.4.80.0070.0206.76
4.4.70.0030.0236.76
4.4.60.0030.0236.76
4.4.50.0100.0176.76
4.4.40.0030.0376.76
4.4.30.0100.0176.76
4.4.20.0100.0176.76
4.4.10.0070.0206.76
4.4.00.0100.0406.76
4.3.110.0000.0376.76
4.3.100.0000.0276.76
4.3.90.0000.0276.76
4.3.80.0070.0336.76
4.3.70.0030.0236.76
4.3.60.0130.0236.76
4.3.50.0070.0306.76
4.3.40.0030.0476.76
4.3.30.0070.0276.76
4.3.20.0030.0306.76
4.3.10.0000.0336.76
4.3.00.0330.03014.52

preferences:
48.85 ms | 400 KiB | 5 Q